ring.util.request
Functions for augmenting and pulling information from request maps.
body-string
multimethod
added in 1.2
(body-string request)
Return the request body as a string.
character-encoding
added in 1.3
(character-encoding request)
Return the character encoding for the request, or nil if it is not set.
content-length
added in 1.3
(content-length request)
Return the content-length of the request, or nil no content-length is set.
content-type
added in 1.3
(content-type request)
Return the content-type of the request, or nil if no content-type is set.
in-context?
added in 1.2
(in-context? request context)
Returns true if the URI of the request is a subpath of the supplied context.
path-info
added in 1.2
(path-info request)
Returns the relative path of the request.
request-url
added in 1.2
(request-url request)
Return the full URL of the request.
set-context
added in 1.2
(set-context request context)
Associate a context and path-info with the request. The request URI must be
a subpath of the supplied context.