Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|
Various webwire tools.
- getQueryParam :: WebWire site ByteString ByteString
- addHeader :: WebWire site (CI Ascii, Ascii) ()
- getCookie :: WebWire site ByteString ByteString
- setCookie :: WebWire site SetCookie ()
- setCookieSimple :: WebWire site (ByteString, ByteString, Maybe NominalDiffTime) ()
- notFound :: WebWire site a b
Requests
getQueryParam :: WebWire site ByteString ByteStringSource
Retrieve the given query parameter. Inhibits with 404, if the parameter does not exist.
Responses
Headers
Cookies
getCookie :: WebWire site ByteString ByteStringSource
Retrieves the given cookie from the request. Inhibits, if the cookie doesn't exist.
setCookieSimple :: WebWire site (ByteString, ByteString, Maybe NominalDiffTime) ()Source
Sets the given cookie for the root path of the current domain with the given validity duration. If no duration is given, it becomes a session cookie.