antikythera v0.4.0 AntikytheraCore.Handler.CowboyReq View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Specs

method(:cowboy_req.req()) :: result(Antikythera.Http.Method.t())

Specs

path_info(:cowboy_req.req()) :: Antikythera.PathInfo.t()
Link to this function

query_params(req, routing_info)

View Source

Specs

query_params(:cowboy_req.req(), routing_info()) ::
  result(Antikythera.Http.QueryParams.t())
Link to this function

request_body_pair(req1, routing_info, qparams, helper_modules)

View Source

Specs

request_body_pair(
  :cowboy_req.req(),
  routing_info(),
  Antikythera.Http.QueryParams.t(),
  AntikytheraCore.Handler.HelperModules.t()
) :: result({:cowboy_req.req(), {binary(), Antikythera.Http.Body.t()}})
Link to this function

with_conn(req, routing_info, qparams, body_pair \\ {"", ""}, f)

View Source

Specs

with_conn(
  :cowboy_req.req(),
  routing_info(),
  Antikythera.Http.QueryParams.t(),
  {binary(), Antikythera.Http.Body.t()},
  (Antikythera.Conn.t() -> Antikythera.Conn.t())
) :: :cowboy_req.req()