buddy.auth.http

The http request response abstraction for builtin auth/authz backends.

find-header

(find-header headers header-name)

Looks up a header in a headers map case insensitively, returning the header map entry, or nil if not present.

IRequest

protocol

members

-get-header

(-get-header req name)

Get a value of header.

redirect

(redirect url)(redirect url status)

Returns a Ring compatible response for an HTTP 302 redirect.

response

(response body)(response body status)(response body status headers)

A multi arity function that creates a ring compatible response.

response?

(response? resp)