| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit2.Objects.URIResponse
Contents
Description
No description available in the introspection data.
Synopsis
- newtype URIResponse = URIResponse (ManagedPtr URIResponse)
- class GObject o => IsURIResponse o
- toURIResponse :: (MonadIO m, IsURIResponse o) => o -> m URIResponse
- noURIResponse :: Maybe URIResponse
- uRIResponseGetContentLength :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word64
- uRIResponseGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m MessageHeaders
- uRIResponseGetMimeType :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
- uRIResponseGetStatusCode :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word32
- uRIResponseGetSuggestedFilename :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
- uRIResponseGetUri :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
- getURIResponseContentLength :: (MonadIO m, IsURIResponse o) => o -> m Word64
- getURIResponseHttpHeaders :: (MonadIO m, IsURIResponse o) => o -> m MessageHeaders
- getURIResponseMimeType :: (MonadIO m, IsURIResponse o) => o -> m Text
- getURIResponseStatusCode :: (MonadIO m, IsURIResponse o) => o -> m Word32
- getURIResponseSuggestedFilename :: (MonadIO m, IsURIResponse o) => o -> m Text
- getURIResponseUri :: (MonadIO m, IsURIResponse o) => o -> m Text
Exported types
newtype URIResponse Source #
Memory-managed wrapper type.
Constructors
| URIResponse (ManagedPtr URIResponse) |
Instances
| GObject URIResponse Source # | |
Methods gobjectType :: URIResponse -> IO GType # | |
| IsObject URIResponse Source # | |
| IsURIResponse URIResponse Source # | |
class GObject o => IsURIResponse o Source #
Type class for types which can be safely cast to URIResponse, for instance with toURIResponse.
Instances
| (GObject a, (UnknownAncestorError URIResponse a :: Constraint)) => IsURIResponse a Source # | |
| IsURIResponse URIResponse Source # | |
toURIResponse :: (MonadIO m, IsURIResponse o) => o -> m URIResponse Source #
Cast to URIResponse, for types for which this is known to be safe. For general casts, use castTo.
noURIResponse :: Maybe URIResponse Source #
A convenience alias for Nothing :: Maybe URIResponse.
Methods
getContentLength
uRIResponseGetContentLength Source #
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m Word64 | Returns: the expected content length of |
Get the expected content length of the URIResponse. It can
be 0 if the server provided an incorrect or missing Content-Length.
getHttpHeaders
uRIResponseGetHttpHeaders Source #
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m MessageHeaders | Returns: a |
Get the HTTP headers of a URIResponse as a MessageHeaders.
Since: 2.6
getMimeType
uRIResponseGetMimeType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m Text | Returns: the MIME type of the |
No description available in the introspection data.
getStatusCode
uRIResponseGetStatusCode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m Word32 | Returns: the status code of |
Get the status code of the URIResponse as returned by
the server. It will normally be a KnownStatusCode, for
example StatusOk, though the server can respond with any
unsigned integer.
getSuggestedFilename
uRIResponseGetSuggestedFilename Source #
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m Text | Returns: the suggested filename or |
Get the suggested filename for response, as specified by
the 'Content-Disposition' HTTP header, or Nothing if it's not
present.
getUri
Arguments
| :: (HasCallStack, MonadIO m, IsURIResponse a) | |
| => a |
|
| -> m Text | Returns: the uri of the |
No description available in the introspection data.
Properties
contentLength
The expected content length of the response.
getURIResponseContentLength :: (MonadIO m, IsURIResponse o) => o -> m Word64 Source #
Get the value of the “content-length” property.
When overloading is enabled, this is equivalent to
get uRIResponse #contentLength
httpHeaders
The HTTP headers of the response, or Nothing if the response is not an HTTP response.
Since: 2.6
getURIResponseHttpHeaders :: (MonadIO m, IsURIResponse o) => o -> m MessageHeaders Source #
Get the value of the “http-headers” property.
When overloading is enabled, this is equivalent to
get uRIResponse #httpHeaders
mimeType
The MIME type of the response.
getURIResponseMimeType :: (MonadIO m, IsURIResponse o) => o -> m Text Source #
Get the value of the “mime-type” property.
When overloading is enabled, this is equivalent to
get uRIResponse #mimeType
statusCode
The status code of the response as returned by the server.
getURIResponseStatusCode :: (MonadIO m, IsURIResponse o) => o -> m Word32 Source #
Get the value of the “status-code” property.
When overloading is enabled, this is equivalent to
get uRIResponse #statusCode
suggestedFilename
The suggested filename for the URI response.
getURIResponseSuggestedFilename :: (MonadIO m, IsURIResponse o) => o -> m Text Source #
Get the value of the “suggested-filename” property.
When overloading is enabled, this is equivalent to
get uRIResponse #suggestedFilename
uri
The URI for which the response was made.
getURIResponseUri :: (MonadIO m, IsURIResponse o) => o -> m Text Source #
Get the value of the “uri” property.
When overloading is enabled, this is equivalent to
get uRIResponse #uri