| 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.WebKit.Objects.NetworkResponse
Contents
Description
This class represents the network related aspects of a navigation response.
- newtype NetworkResponse = NetworkResponse (ManagedPtr NetworkResponse)
- class GObject o => IsNetworkResponse o
- toNetworkResponse :: (MonadIO m, IsNetworkResponse o) => o -> m NetworkResponse
- noNetworkResponse :: Maybe NetworkResponse
- networkResponseGetMessage :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Message
- networkResponseGetSuggestedFilename :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Text
- networkResponseGetUri :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Text
- networkResponseNew :: (HasCallStack, MonadIO m) => Text -> m NetworkResponse
- networkResponseSetUri :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> Text -> m ()
- constructNetworkResponseMessage :: (IsNetworkResponse o, IsMessage a) => a -> IO (GValueConstruct o)
- getNetworkResponseMessage :: (MonadIO m, IsNetworkResponse o) => o -> m Message
- getNetworkResponseSuggestedFilename :: (MonadIO m, IsNetworkResponse o) => o -> m Text
- constructNetworkResponseUri :: IsNetworkResponse o => Text -> IO (GValueConstruct o)
- getNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> m Text
- setNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> Text -> m ()
Exported types
newtype NetworkResponse Source #
Constructors
| NetworkResponse (ManagedPtr NetworkResponse) |
class GObject o => IsNetworkResponse o Source #
Instances
toNetworkResponse :: (MonadIO m, IsNetworkResponse o) => o -> m NetworkResponse Source #
Methods
getMessage
networkResponseGetMessage Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNetworkResponse a) | |
| => a |
|
| -> m Message | Returns: the |
Obtains the Message that represents the given response. Notice
that only the response side of the HTTP conversation is
represented.
Since: 1.1.14
getSuggestedFilename
networkResponseGetSuggestedFilename Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNetworkResponse a) | |
| => a |
|
| -> m Text | Returns: the suggested filename or |
Obtains the suggested filename for the given network response. The
suggested filename is taken from the 'Content-Disposition' HTTP
header, but this is not always present, and this method will return
Nothing in such case.
Since: 1.10
getUri
networkResponseGetUri Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNetworkResponse a) | |
| => a |
|
| -> m Text | Returns: the URI of the |
No description available in the introspection data.
Since: 1.1.14
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m NetworkResponse | Returns: a new |
Creates a new NetworkResponse initialized with an URI.
Since: 1.1.14
setUri
networkResponseSetUri Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNetworkResponse a) | |
| => a |
|
| -> Text |
|
| -> m () |
Sets the URI held and used by the given response. When the response
has an associated Message, its URI will also be set by this
call.
Since: 1.1.14
Properties
message
constructNetworkResponseMessage :: (IsNetworkResponse o, IsMessage a) => a -> IO (GValueConstruct o) Source #
getNetworkResponseMessage :: (MonadIO m, IsNetworkResponse o) => o -> m Message Source #
suggestedFilename
getNetworkResponseSuggestedFilename :: (MonadIO m, IsNetworkResponse o) => o -> m Text Source #
uri
constructNetworkResponseUri :: IsNetworkResponse o => Text -> IO (GValueConstruct o) Source #
getNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> m Text Source #
setNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> Text -> m () Source #