FdsnPlugs.BodyParser (fdsn_plugs v0.8.3)

View Source

This modules parses the body of a HTTP request to generate a struct

Summary

Functions

Callback implementation for Plug.Parsers.init/1.

Parse the body of the request in order to return a struct. This function implements the behavior of Plug.Parsers. option maxlines Note: The parser will halt as soon as a line is not parseable.

Functions

init(opts)

Callback implementation for Plug.Parsers.init/1.

parse(conn, _, _, _, opts \\ [length: 1000])

Parse the body of the request in order to return a struct. This function implements the behavior of Plug.Parsers. option maxlines Note: The parser will halt as soon as a line is not parseable.