View Source nova_cors_plugin (nova v0.10.1)

Summary

Functions

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

Functions

-spec 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
-spec 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
-spec pre_request(Req :: cowboy_req:req(), Options :: map()) -> {ok, Req0 :: cowboy_req:req()}.
Pre-request callback