|
| Network.OAuth.Http.Request |
|
|
|
|
| Description |
| The request currently is only able to represent an HTTP request.
|
|
| Synopsis |
|
|
|
|
| Types
|
|
|
| Constructors | | ReqHttp | | | version :: Version | Protocol version
| | ssl :: Bool | Wheter or not to use ssl
| | host :: String | The hostname to connect to
| | port :: Int | The port to connect to
| | method :: Method | The HTTP method of the request.
| | reqHeaders :: FieldList | Request headers
| | pathComps :: [String] | The path split into components
| | qString :: FieldList | The query string, usually set for GET requests
| | reqPayload :: ByteString | The message body
|
|
|
|
|
|
|
|
|
| Supported HTTP versions
| | Constructors | |
|
|
|
| All known HTTP methods
| | Constructors | | GET | | | POST | | | PUT | | | DELETE | | | TRACE | | | CONNECT | | | HEAD | |
|
|
|
| FieldList related functions
|
|
|
| Creates a FieldList type from a list.
|
|
|
| Creates a FieldList out from a single element.
|
|
|
| Returns an empty fieldlist.
|
|
|
| Transforms a fieldlist into a list type.
|
|
|
| Parse a query string.
|
|
|
| Find keys that satisfy a given predicate.
|
|
|
| Finds a the value defined in a fieldlist or returns a default value. In
the event there are multiple values under the same key the first one is
returned.
|
|
|
| Same as findWithDefault but the match is case-insenstiive.
|
|
|
| Updates all occurrences of a given key with a new value. Does nothing if
the values does not exist.
|
|
|
| Inserts a new value into a fieldlist.
|
|
|
| Inserts or updates occurrences of a given key.
|
|
|
| Same as replace but work on a list type
|
|
|
| Combines two fieldsets, but prefere items of the first list.
|
|
|
| Combines two fieldsets keeping duplicates.
|
|
| Request related functions
|
|
|
| Show the URL.
|
|
|
| Show the querty string of the URL.
|
|
|
| Show the protocol in use (currently either https or http)
|
|
|
| Show the host+port path of the request. May return only the host when
(ssl=False && port==80) or (ssl=True && port==443).
|
|
|
| Show the path component of the URL.
|
|
|
| Parse a URL and creates an request type.
|
|
| Produced by Haddock version 2.6.0 |