HTTParrot.PHandler (HTTParrot v1.5.0)

View Source

This REST handler will respond to POST, PATCH and PUT requests.

Summary

Functions

allowed_methods(req, state)

When a request is made to /post, allowed_methods will return POST for example

content_types_accepted(req, state)

content_types_provided(req, state)

handle_binary(req, chunks \\ [])

handle_multipart(req, parts \\ [])

init(req, state)

normalize_list(list)

post_binary(req, state)

post_form(req, state)

post_multipart(req, state)