Sap v0.1.0 Sap.Combinators.Response View Source

General responsehelpers

Link to this section Summary

Link to this section Functions

Sets the response header for the rest of a node to application/json.

Link to this function response(status, content) View Source
response(integer() | atom(), String.t()) :: Sap.Combinators.combinator()
Link to this function set_mime_type(type, encoding \\ "utf-8") View Source
set_mime_type(String.t(), String.t()) :: Sap.Combinators.combinator()
Link to this function set_status(status) View Source
set_status(integer() | atom()) :: Sap.Combinators.combinator()
Link to this function set_user_data(key, value) View Source
set_user_data(String.t() | atom(), term()) :: Sap.Combinators.combinator()