rodeo v0.3.0 Rodeo.Handler.Default

A handler returning ‘Hello World’ as plain text response.

Summary

Functions

Called by init/3. Expected to return a tuple {:ok, request, state}

Extract the request’s headers as list of key/value pairs

Extract the request URI (path with leading /)

The HTTP status code

Functions

handle(request, state)

Called by init/3. Expected to return a tuple {:ok, request, state}.

request_headers(req)

Extract the request’s headers as list of key/value pairs

request_path(req)

Extract the request URI (path with leading /)

status()

The HTTP status code.