| Copyright | (c) 2016 Owain Lewis |
|---|---|
| License | BSD-style |
| Maintainer | owain@owainlewis.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.HTTP.Dispatch.Dispatch
Description
A simple Haskell HTTP library
This module contains the primary user facing DSL for making requests
- raw :: HTTPRequestMethod -> String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse
- get :: String -> [(String, String)] -> IO HTTPResponse
- post :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse
- put :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse
- patch :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse
- delete :: String -> [(String, String)] -> IO HTTPResponse
Documentation
raw :: HTTPRequestMethod -> String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse Source #
Constructs a HTTP request from raw components and returns a HTTP response
post :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse Source #
Send a HTTP POST request
put :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse Source #
patch :: String -> [(String, String)] -> Maybe ByteString -> IO HTTPResponse Source #
Send a HTTP PATCH request