nova_cors_plugin (nova v0.9.1) View Source

Link to this section Summary

Functions

nova_plugin callback. Returns information about the plugin.
Post-request callback
Pre-request callback

Link to this section Functions

Specs

plugin_info() ->
               {Title :: binary(),
                Version :: binary(),
                Author :: binary(),
                Description :: binary(),
                Options :: [{Key :: atom(), OptionDescription :: binary()}]}.
nova_plugin callback. Returns information about the plugin.
Link to this function

post_request(Req, Options)

View Source

Specs

post_request(Req :: cowboy_req:req(), Options :: map()) -> {ok, Req0 :: cowboy_req:req()}.
Post-request callback
Link to this function

pre_request(Req, Options)

View Source

Specs

pre_request(Req :: cowboy_req:req(), Options :: map()) -> {ok, Req0 :: cowboy_req:req()}.
Pre-request callback