View Source AntikytheraCore.Handler.CowboyReq (antikythera v0.5.1)
Summary
Types
@type result(a) :: {:ok, a} | {:error, :cowboy_req.req()}
@type routing_info() :: {Antikythera.GearName.t(), nil | Antikythera.Context.GearEntryPoint.t(), Antikythera.Http.Method.t(), Antikythera.PathInfo.t(), Antikythera.Request.PathMatches.t()}
Functions
@spec method(:cowboy_req.req()) :: result(Antikythera.Http.Method.t())
@spec path_info(:cowboy_req.req()) :: Antikythera.PathInfo.t()
@spec query_params(:cowboy_req.req(), routing_info()) :: result(Antikythera.Http.QueryParams.t())
@spec 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()}})
@spec 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()