nova_http (NOVA vv0.8.0)

Link to this section Summary

Link to this section Functions

Link to this function

add_header(Key, Value, NovaHttpState)

Specs

add_header(Key :: binary(), Value :: binary(), NovaHttpState) -> NovaHttpState
              when NovaHttpState :: nova:state().
Link to this function

clear_body(NovaHttpState)

Specs

clear_body(NovaHttpState) -> NovaHttpState when NovaHttpState :: nova:state().
Link to this function

remove_header(Key, NovaHttpState)

Specs

remove_header(Key :: binary(), NovaHttpState) -> NovaHttpState when NovaHttpState :: nova:state().
Link to this function

set_body(Body, NovaHttpState)

Specs

set_body(Body :: cowboy_req:resp_body(), NovaHttpState) -> NovaHttpState
            when NovaHttpState :: nova:state().
Link to this function

set_cookie(Key, Value, NovaHttpState)

Specs

set_cookie(Key :: binary(), Value :: iodata(), NovaHttpState) -> NovaHttpState
              when NovaHttpState :: nova:state().
Link to this function

set_cookie(Key, Value, Options, NovaHttpState)

Specs

set_cookie(Key :: binary(), Value :: iodata(), Options :: cow_cookie:cookie_opts(), NovaHttpState) ->
              NovaHttpState
              when NovaHttpState :: nova:state().
Link to this function

set_headers(Headers, NovaHttpState)

Specs

set_headers(Headers :: map() | [{Key :: binary(), Value :: binary()}], NovaHttpState) ->
               NovaHttpState
               when NovaHttpState :: nova:state().
Link to this function

set_status(StatusCode, NovaHttpState)

Specs

set_status(StatusCode :: integer(), NovaHttpState) -> NovaHttpState
              when NovaHttpState :: nova:state().