Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a URI request.
A URIRequest
can be created with a URI using the
uRIRequestNew
method, and you can get the URI of an
existing request with the uRIRequestGetUri
one.
Synopsis
- newtype URIRequest = URIRequest (ManagedPtr URIRequest)
- class (GObject o, IsDescendantOf URIRequest o) => IsURIRequest o
- toURIRequest :: (MonadIO m, IsURIRequest o) => o -> m URIRequest
- uRIRequestGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m MessageHeaders
- uRIRequestGetHttpMethod :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text
- uRIRequestGetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text
- uRIRequestNew :: (HasCallStack, MonadIO m) => Text -> m URIRequest
- uRIRequestSetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> Text -> m ()
- constructURIRequestUri :: (IsURIRequest o, MonadIO m) => Text -> m (GValueConstruct o)
- getURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> m Text
- setURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> Text -> m ()
Exported types
newtype URIRequest Source #
Memory-managed wrapper type.
URIRequest (ManagedPtr URIRequest) |
Instances
Eq URIRequest Source # | |
Defined in GI.WebKitWebProcessExtension.Objects.URIRequest (==) :: URIRequest -> URIRequest -> Bool # (/=) :: URIRequest -> URIRequest -> Bool # | |
GObject URIRequest Source # | |
ManagedPtrNewtype URIRequest Source # | |
Defined in GI.WebKitWebProcessExtension.Objects.URIRequest toManagedPtr :: URIRequest -> ManagedPtr URIRequest | |
TypedObject URIRequest Source # | |
HasParentTypes URIRequest Source # | |
IsGValue (Maybe URIRequest) Source # | Convert |
Defined in GI.WebKitWebProcessExtension.Objects.URIRequest gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe URIRequest -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe URIRequest) | |
type ParentTypes URIRequest Source # | |
Defined in GI.WebKitWebProcessExtension.Objects.URIRequest type ParentTypes URIRequest = '[Object] |
class (GObject o, IsDescendantOf URIRequest o) => IsURIRequest o Source #
Type class for types which can be safely cast to URIRequest
, for instance with toURIRequest
.
Instances
(GObject o, IsDescendantOf URIRequest o) => IsURIRequest o Source # | |
toURIRequest :: (MonadIO m, IsURIRequest o) => o -> m URIRequest Source #
Cast to URIRequest
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getHttpHeaders, getHttpMethod, getProperty, getQdata, getUri.
Setters
getHttpHeaders
uRIRequestGetHttpHeaders Source #
:: (HasCallStack, MonadIO m, IsURIRequest a) | |
=> a |
|
-> m MessageHeaders | Returns: a |
Get the HTTP headers of a URIRequest
as a MessageHeaders
.
getHttpMethod
uRIRequestGetHttpMethod Source #
:: (HasCallStack, MonadIO m, IsURIRequest a) | |
=> a |
|
-> m Text | Returns: the HTTP method of the |
Get the HTTP method of the URIRequest
.
Since: 2.12
getUri
:: (HasCallStack, MonadIO m, IsURIRequest a) | |
=> a |
|
-> m Text | Returns: request URI, as a string. |
Obtains the request URI.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m URIRequest | Returns: a new |
Creates a new URIRequest
for the given URI.
setUri
:: (HasCallStack, MonadIO m, IsURIRequest a) | |
=> a |
|
-> Text |
|
-> m () |
Set the URI of request
Properties
uri
The URI to which the request will be made.
constructURIRequestUri :: (IsURIRequest o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “uri
” property. This is rarely needed directly, but it is used by new
.
getURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> m Text Source #
Get the value of the “uri
” property.
When overloading is enabled, this is equivalent to
get
uRIRequest #uri
setURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> Text -> m () Source #
Set the value of the “uri
” property.
When overloading is enabled, this is equivalent to
set
uRIRequest [ #uri:=
value ]