FdsnPlugs.NonEmptyRequest (fdsn_plugs v1.0.0)

Copy Markdown View Source

This plug checks if the request is empty. This depends on the HTTP method. When GET is used, check that the conn.params has at least one element. When POST is used, the assigns is already in :fdsn_parameters. Check it has at least one element.

Summary

Functions

call(conn, _)

init(opts)