View Source Plausible.Ingestion.Request (Plausible v0.0.1)
The %Plausible.Ingestion.Request{} struct stores all needed fields to create an event downstream. Pre-eliminary validation is made to detect user errors early.
Summary
Functions
Builds and initially validates %Plausible.Ingestion.Request{} struct from %Plug.Conn{}.
Removes the "www" part of a hostname.
Types
Functions
@spec build(Plug.Conn.t(), NaiveDateTime.t()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Builds and initially validates %Plausible.Ingestion.Request{} struct from %Plug.Conn{}.
Removes the "www" part of a hostname.