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 |
This class represents the network related aspects of a navigation response.
- newtype NetworkResponse = NetworkResponse (ManagedPtr NetworkResponse)
- class GObject o => IsNetworkResponse o
- toNetworkResponse :: IsNetworkResponse o => o -> IO NetworkResponse
- noNetworkResponse :: Maybe NetworkResponse
- data NetworkResponseGetMessageMethodInfo
- networkResponseGetMessage :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Message
- data NetworkResponseGetSuggestedFilenameMethodInfo
- networkResponseGetSuggestedFilename :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Text
- data NetworkResponseGetUriMethodInfo
- networkResponseGetUri :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> m Text
- networkResponseNew :: (HasCallStack, MonadIO m) => Text -> m NetworkResponse
- data NetworkResponseSetUriMethodInfo
- networkResponseSetUri :: (HasCallStack, MonadIO m, IsNetworkResponse a) => a -> Text -> m ()
- data NetworkResponseMessagePropertyInfo
- constructNetworkResponseMessage :: (IsNetworkResponse o, IsMessage a) => a -> IO (GValueConstruct o)
- getNetworkResponseMessage :: (MonadIO m, IsNetworkResponse o) => o -> m Message
- networkResponseMessage :: AttrLabelProxy "message"
- data NetworkResponseSuggestedFilenamePropertyInfo
- getNetworkResponseSuggestedFilename :: (MonadIO m, IsNetworkResponse o) => o -> m Text
- networkResponseSuggestedFilename :: AttrLabelProxy "suggestedFilename"
- data NetworkResponseUriPropertyInfo
- constructNetworkResponseUri :: IsNetworkResponse o => Text -> IO (GValueConstruct o)
- getNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> m Text
- networkResponseUri :: AttrLabelProxy "uri"
- setNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> Text -> m ()
Exported types
newtype NetworkResponse Source #
GObject NetworkResponse Source # | |
IsObject NetworkResponse Source # | |
IsNetworkResponse NetworkResponse Source # | |
((~) * info (ResolveNetworkResponseMethod t NetworkResponse), MethodInfo * info NetworkResponse p) => IsLabel t (NetworkResponse -> p) Source # | |
((~) * info (ResolveNetworkResponseMethod t NetworkResponse), MethodInfo * info NetworkResponse p) => IsLabelProxy t (NetworkResponse -> p) Source # | |
HasAttributeList * NetworkResponse Source # | |
type AttributeList NetworkResponse Source # | |
type SignalList NetworkResponse Source # | |
class GObject o => IsNetworkResponse o Source #
toNetworkResponse :: IsNetworkResponse o => o -> IO NetworkResponse Source #
Methods
getMessage
data NetworkResponseGetMessageMethodInfo Source #
((~) * signature (m Message), MonadIO m, IsNetworkResponse a) => MethodInfo * NetworkResponseGetMessageMethodInfo a signature Source # | |
networkResponseGetMessage Source #
:: (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
data NetworkResponseGetSuggestedFilenameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsNetworkResponse a) => MethodInfo * NetworkResponseGetSuggestedFilenameMethodInfo a signature Source # | |
networkResponseGetSuggestedFilename Source #
:: (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
data NetworkResponseGetUriMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsNetworkResponse a) => MethodInfo * NetworkResponseGetUriMethodInfo a signature Source # | |
networkResponseGetUri Source #
:: (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
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m NetworkResponse | Returns: a new |
Creates a new NetworkResponse
initialized with an URI.
Since: 1.1.14
setUri
data NetworkResponseSetUriMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsNetworkResponse a) => MethodInfo * NetworkResponseSetUriMethodInfo a signature Source # | |
networkResponseSetUri Source #
:: (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
data NetworkResponseMessagePropertyInfo Source #
constructNetworkResponseMessage :: (IsNetworkResponse o, IsMessage a) => a -> IO (GValueConstruct o) Source #
getNetworkResponseMessage :: (MonadIO m, IsNetworkResponse o) => o -> m Message Source #
networkResponseMessage :: AttrLabelProxy "message" Source #
suggestedFilename
data NetworkResponseSuggestedFilenamePropertyInfo Source #
getNetworkResponseSuggestedFilename :: (MonadIO m, IsNetworkResponse o) => o -> m Text Source #
networkResponseSuggestedFilename :: AttrLabelProxy "suggestedFilename" Source #
uri
data NetworkResponseUriPropertyInfo Source #
constructNetworkResponseUri :: IsNetworkResponse o => Text -> IO (GValueConstruct o) Source #
getNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> m Text Source #
networkResponseUri :: AttrLabelProxy "uri" Source #
setNetworkResponseUri :: (MonadIO m, IsNetworkResponse o) => o -> Text -> m () Source #