gi-webkit2webextension-4.0.25: WebKit2-WebExtension bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.URIRequest

Description

No description available in the introspection data.

Synopsis

Exported types

newtype URIRequest Source #

Memory-managed wrapper type.

Constructors

URIRequest (ManagedPtr URIRequest) 

Instances

Instances details
Eq URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

Methods

(==) :: URIRequest -> URIRequest -> Bool

(/=) :: URIRequest -> URIRequest -> Bool

GObject URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

ManagedPtrNewtype URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

Methods

toManagedPtr :: URIRequest -> ManagedPtr URIRequest

TypedObject URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

Methods

glibType :: IO GType

IsGValue URIRequest Source #

Convert URIRequest to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

Methods

toGValue :: URIRequest -> IO GValue

fromGValue :: GValue -> IO URIRequest

HasParentTypes URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

type ParentTypes URIRequest Source # 
Instance details

Defined in GI.WebKit2WebExtension.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

Instances details
(GObject o, IsDescendantOf URIRequest o) => IsURIRequest o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.URIRequest

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

Overloaded methods

getHttpHeaders

uRIRequestGetHttpHeaders Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIRequest a) 
=> a

request: a URIRequest

-> m MessageHeaders

Returns: a MessageHeaders with the HTTP headers of request or Nothing if request is not an HTTP request.

Get the HTTP headers of a URIRequest as a MessageHeaders.

getHttpMethod

uRIRequestGetHttpMethod Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIRequest a) 
=> a

request: a URIRequest

-> m Text

Returns: the HTTP method of the URIRequest or Nothing if request is not an HTTP request.

Get the HTTP method of the URIRequest.

Since: 2.12

getUri

uRIRequestGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIRequest a) 
=> a

request: a URIRequest

-> m Text

Returns: the uri of the URIRequest

No description available in the introspection data.

new

uRIRequestNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

uri: an URI

-> m URIRequest

Returns: a new URIRequest

Creates a new URIRequest for the given URI.

setUri

uRIRequestSetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIRequest a) 
=> a

request: a URIRequest

-> Text

uri: an URI

-> 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 ]