Farseer v0.1.0 Farseer.Handler View Source

Link to this section Summary

Functions

Finds out whether a request accepts a given mime type. Succeeds if the request accepts / or /*.

If a route is not found, we want to respond with the a media type the client can understand, or with plain text as last resort.

Link to this section Functions

Link to this function

accepts?(conn, mime_full_type)

View Source

Finds out whether a request accepts a given mime type. Succeeds if the request accepts / or /*.

If a route is not found, we want to respond with the a media type the client can understand, or with plain text as last resort.

Link to this function

respond(conn, status, body, content_type \\ "text/plain")

View Source

Shorthand to send responses.