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.
Link to this section Summary
Functions
Builds and initially validates %Plausible.Ingestion.Request{} struct from %Plug.Conn{}.
Removes the "www" part of a hostname.
Link to this section Types
Link to this section 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.