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.

  1. setDescription :: Handler h m => Description -> h a a

    webgear-core WebGear.Core.Handler

    Set a description of a part of an API

  2. setSummary :: Handler h m => Summary -> h a a

    webgear-core WebGear.Core.Handler

    Set a summary of a part of an API

  3. setTrait :: forall (ts :: [Type]) . Set h t => t -> (With Response ts -> Response -> Attribute t Response -> With Response (t ': ts)) -> h (With Response ts, Attribute t Response) (With Response (t ': ts))

    webgear-core WebGear.Core.Trait

    Set a trait attribute t on the value Response `With` ts.

  4. setBody :: forall body mt h (ts :: [Type]) . (Sets h '[Body mt body, RequiredResponseHeader "Content-Type" Text], MIMEType mt) => mt -> h (With Response ts, body) (With Response (Body mt body ': (RequiredResponseHeader "Content-Type" Text ': 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)
    

  5. setBodyWithoutContentType :: forall h (ts :: [Type]) . Set h UnknownContentBody => h (With Response ts, ResponseBody) (With Response (UnknownContentBody ': ts))

    webgear-core WebGear.Core.Trait.Body

    Set the response body without specifying any media type. Usage:

    let body :: ResponseBody = ...
    response' <- setBodyWithoutContentType -< (response, body)
    

  6. setCookie :: forall (name :: Symbol) h (ts :: [Type]) . Set h (SetCookie 'Required name) => h (With Response ts, SetCookie) (With Response (SetCookie 'Required name ': ts))

    webgear-core WebGear.Core.Trait.Cookie

    Set a cookie value in a response. Example usage:

    response' <- setCookie @"name" -< (response, cookie)
    

  7. setOptionalCookie :: forall (name :: Symbol) h (ts :: [Type]) . Set h (SetCookie 'Optional name) => h (With Response ts, Maybe SetCookie) (With Response (SetCookie 'Optional name ': ts))

    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)
    

  8. setHeader :: forall (name :: Symbol) val h (ts :: [Type]) . Set h (ResponseHeader 'Required name val) => h (With Response ts, val) (With Response (ResponseHeader 'Required name val ': ts))

    webgear-core WebGear.Core.Trait.Header

    Set a header value in a response. Example usage:

    response' <- setHeader @"Content-Length" -< (response, 42)
    

  9. setOptionalHeader :: forall (name :: Symbol) val h (ts :: [Type]) . Set h (ResponseHeader 'Optional name val) => h (With Response ts, Maybe val) (With Response (ResponseHeader 'Optional name val ': ts))

    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)
    

  10. setAttribute :: Text -> Text -> Node -> Node

    xmlhtml Text.XmlHtml

    Sets the attribute name to the given value. If the Node is not an element, this is the identity.

Page 433 of many | Previous | Next