Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setDescription :: Handler h m => Description -> h a awebgear-core WebGear.Core.Handler Set a description of a part of an API
setSummary :: Handler h m => Summary -> h a awebgear-core WebGear.Core.Handler Set a summary of a part of an API
-
webgear-core WebGear.Core.Trait Set a trait attribute t on the value Response `With` ts.
-
webgear-core WebGear.Core.Trait.Body Set the response body along with a media type. The MIME type mt is used to set the "Content-Type" header in the response. Usage:
let body :: SomeJSONType = ... response' <- setBody JSON -< (response, body)
-
webgear-core WebGear.Core.Trait.Body Set the response body without specifying any media type. Usage:
let body :: ResponseBody = ... response' <- setBodyWithoutContentType -< (response, body)
-
webgear-core WebGear.Core.Trait.Cookie Set a cookie value in a response. Example usage:
response' <- setCookie @"name" -< (response, cookie)
-
webgear-core WebGear.Core.Trait.Cookie Set an optional cookie value in a response. Setting the cookie to Nothing will remove it from the response if it was previously set. The cookie will be considered as optional in all relevant places (such as documentation). Example usage:
response' <- setOptionalCookie @"name" -< (response, cookie)
-
webgear-core WebGear.Core.Trait.Header Set a header value in a response. Example usage:
response' <- setHeader @"Content-Length" -< (response, 42)
-
webgear-core WebGear.Core.Trait.Header Set an optional header value in a response. Setting the header to Nothing will remove it from the response if it was previously set. The header will be considered as optional in all relevant places (such as documentation). Example usage:
response' <- setOptionalHeader @"Content-Length" -< (response, Just 42)
setAttribute :: Text -> Text -> Node -> Nodexmlhtml Text.XmlHtml Sets the attribute name to the given value. If the Node is not an element, this is the identity.