Karta. Inbound. Formats
(Karta v1.0.0)
The request for an HTTP endpoint whose format carries a received message as parsed fields, rather than as the message itself:
:postal_hash- Postal'sHash(Karta.Inbound.Formats.PostalHash);:mailgun- a Mailgun route'sforward()post (Karta.Inbound.Formats.Mailgun);:sendgrid- SendGrid's Inbound Parse, raw form (Karta.Inbound.Formats.Sendgrid);:postmark- Postmark's inbound webhook (Karta.Inbound.Formats.Postmark).
build/5 parses the message once (Karta.Inbound.MailFields) and gives
it to the format's builder, so every format reads the same fields from
the same reader. A message the parser refuses (its limits) is a delivery
that fails: {:error, reason}, with no request made.
Summary
Functions
The headers and body of the request for delivery, or the reason the
message could not be read.
Functions
@spec build( Karta.Inbound.Endpoint.t(), Karta.Inbound.Delivery.t(), Karta.Messages.Message.t(), binary(), DateTime.t() ) :: {:ok, [{String.t(), String.t()}], binary()} | {:error, String.t()}
The headers and body of the request for delivery, or the reason the
message could not be read.
@spec formats() :: [atom()]
The formats build/5 builds.