View Source simpler_cowboy_rest behaviour (simpler_cowboy_rest v1.0.0)
Summary
Callbacks
-callback allow_missing_post(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.
-callback allowed_methods(Req, State) -> {Result, Req, State} when Result :: [binary()] | stop.
-callback delete(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.
-callback delete_resource(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.
-callback forbidden(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.
-callback get(Req, State) -> {Result, Req, State} when Result :: cowboy_req:resp_body() | stop.
-callback init(Req, State) -> {Result, Req, State} when Result :: cowboy_rest.
-callback is_authorized(Req, State) -> {Result, Req, State} when Result :: true | {false, AuthHeader :: iodata()} | stop.
-callback post(Req, State) -> {Result, Req, State} when Result :: true | {true, URI :: iodata()} | false | stop.
-callback put(Req, State) -> {Result, Req, State} when Result :: true | {true, URI :: iodata()} | false | stop.
-callback resource_exists(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.
-callback service_available(Req, State) -> {Result, Req, State} when Result :: boolean() | stop.