Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

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

  1. simpleHttp :: MonadIO m => String -> m ByteString

    http-conduit Network.HTTP.Conduit

    Download the specified URL, following any redirects, and return the response body. This function will throwIO an HttpException for any response with a non-2xx status code (besides 3xx redirects up to a limit of 10 redirects). It uses parseUrlThrow to parse the input. This function essentially wraps httpLbs. Note: Even though this function returns a lazy bytestring, it does not utilize lazy I/O, and therefore the entire response body will live in memory. If you want constant memory usage, you'll need to use the conduit package and http directly. Note: This function creates a new Manager. It should be avoided in production code.

  2. simpleHTTP :: HStream ty => Request ty -> IO (Result (Response ty))

    HTTP Network.HTTP

    simpleHTTP req transmits the Request req by opening a direct, non-persistent connection to the HTTP server that req is destined for, followed by transmitting it and gathering up the response as a Result. Prior to sending the request, it is normalized (via normalizeRequest). If you have to mediate the request via an HTTP proxy, you will have to normalize the request yourself. Or switch to using Browser instead. Examples:

    simpleHTTP (getRequest "http://hackage.haskell.org/")
    simpleHTTP (getRequest "http://hackage.haskell.org:8012/")
    

  3. simpleHTTP :: HStream ty => Request ty -> IO (Result (Response ty))

    HTTP Network.HTTP.HandleStream

    simpleHTTP transmits a resource across a non-persistent connection.

  4. simpleHTTP :: Request_String -> IO (Result Response_String)

    HTTP Network.HTTP.Stream

    Simple way to transmit a resource across a non-persistent connection.

  5. simpleHTTP :: ToMessage a => Conf -> ServerPartT IO a -> IO ()

    happstack-server Happstack.Server

    start the server, and handle requests using the supplied ServerPart. This function will not return, though it may throw an exception. NOTE: The server will only listen on IPv4 due to portability issues in the Network module. For IPv6 support, use simpleHTTPWithSocket with custom socket.

  6. simpleHTTP :: ToMessage a => Conf -> ServerPartT IO a -> IO ()

    happstack-server Happstack.Server.SimpleHTTP

    start the server, and handle requests using the supplied ServerPart. This function will not return, though it may throw an exception. NOTE: The server will only listen on IPv4 due to portability issues in the Network module. For IPv6 support, use simpleHTTPWithSocket with custom socket.

  7. module Happstack.Server.SimpleHTTP

    simpleHTTP is a self-contained HTTP server which can be used to run a ServerPart. A very simple, "Hello World!" web app looks like:

    import Happstack.Server
    main = simpleHTTP nullConf $ ok "Hello World!"
    
    By default the server will listen on port 8000. Run the app and point your browser at: http://localhost:8000/ For FastCGI support see: http://hackage.haskell.org/package/happstack-fastcgi

  8. simpleHTTP_ :: HStream ty => HandleStream ty -> Request ty -> IO (Result (Response ty))

    HTTP Network.HTTP

    Identical to simpleHTTP, but acting on an already opened stream.

  9. simpleHTTP_ :: HStream ty => HandleStream ty -> Request ty -> IO (Result (Response ty))

    HTTP Network.HTTP.HandleStream

    Like simpleHTTP, but acting on an already opened stream.

  10. simpleHTTP_debug :: HStream ty => FilePath -> Request ty -> IO (Result (Response ty))

    HTTP Network.HTTP.HandleStream

    simpleHTTP_debug debugFile req behaves like simpleHTTP, but logs the HTTP operation via the debug file debugFile.

Page 1 of many | Next