Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. forbidden :: FilterMonad Response m => a -> m a

    happstack-server Happstack.Server.Response

    Respond with 403 Forbidden.

    main = simpleHTTP nullConf $ forbidden "Sorry, it is forbidden."
    

  2. rsValidator :: Response -> Maybe (Response -> IO Response)

    happstack-server Happstack.Server.Types

    No documentation available.

  3. rsValidator :: Response -> Maybe (Response -> IO Response)

    happstack-server Happstack.Server.Types

    No documentation available.

  4. validator :: Conf -> Maybe (Response -> IO Response)

    happstack-server Happstack.Server.Types

    a function to validate the output on-the-fly

  5. module Happstack.Server.Validation

    Support for validating server output on-the-fly. Validators can be configured on a per content-type basis.

  6. lazyProcValidator :: FilePath -> [String] -> Maybe FilePath -> Maybe [(String, String)] -> (Maybe ByteString -> Bool) -> Response -> IO Response

    happstack-server Happstack.Server.Validation

    Validate the Response using an external application. If the external application returns 0, the original response is returned unmodified. If the external application returns non-zero, a Response containing the error messages and original response body is returned instead. This function also takes a predicate filter which is applied to the content-type of the response. The filter will only be applied if the predicate returns true. NOTE: This function requires the use of -threaded to avoid blocking. However, you probably need that for Happstack anyway. See also: wdgHTMLValidator.

  7. noopValidator :: Response -> IO Response

    happstack-server Happstack.Server.Validation

    A validator which always succeeds. Useful for selectively disabling validation. For example, if you are sending down HTML fragments to an AJAX application and the default validator only understands complete documents.

  8. runValidator :: (Response -> IO Response) -> Response -> IO Response

    happstack-server Happstack.Server.Validation

    Actually perform the validation on a Response. Run the validator specified in the Response. If none is provide use the supplied default instead. Note: This function will run validation unconditionally. You probably want setValidator or validateConf.

  9. setValidator :: (Response -> IO Response) -> Response -> Response

    happstack-server Happstack.Server.Validation

    Set the validator which should be used for this particular Response when validation is enabled. Calling this function does not enable validation. That can only be done by enabling the validation in the Conf that is passed to simpleHTTP. You do not need to call this function if the validator set in Conf does what you want already. Example: (use noopValidator instead of the default supplied by validateConf)

    simpleHTTP validateConf $ ok . setValidator noopValidator =<< htmlPage
    
    See also: validateConf, wdgHTMLValidator, noopValidator, lazyProcValidator.

  10. setValidatorSP :: (Monad m, ToMessage r) => (Response -> IO Response) -> m r -> m Response

    happstack-server Happstack.Server.Validation

    ServerPart version of setValidator. Example: (Set validator to noopValidator)

    simpleHTTP validateConf $ setValidatorSP noopValidator (dir "ajax" ... )
    

Page 1367 of many | Previous | Next