Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype SecurityOrigin = SecurityOrigin (ManagedPtr SecurityOrigin)
- noSecurityOrigin :: Maybe SecurityOrigin
- securityOriginGetHost :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
- securityOriginGetPort :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Word16
- securityOriginGetProtocol :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
- securityOriginIsOpaque :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Bool
- securityOriginNew :: (HasCallStack, MonadIO m) => Text -> Text -> Word16 -> m SecurityOrigin
- securityOriginNewForUri :: (HasCallStack, MonadIO m) => Text -> m SecurityOrigin
- securityOriginRef :: (HasCallStack, MonadIO m) => SecurityOrigin -> m SecurityOrigin
- securityOriginToString :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
- securityOriginUnref :: (HasCallStack, MonadIO m) => SecurityOrigin -> m ()
Exported types
newtype SecurityOrigin Source #
Memory-managed wrapper type.
Instances
BoxedObject SecurityOrigin Source # | |
Defined in GI.WebKit2.Structs.SecurityOrigin boxedType :: SecurityOrigin -> IO GType # |
noSecurityOrigin :: Maybe SecurityOrigin Source #
A convenience alias for Nothing
:: Maybe
SecurityOrigin
.
Methods
getHost
securityOriginGetHost Source #
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m (Maybe Text) | Returns: The host of the |
Gets the hostname of origin
, or Nothing
if origin
is opaque or if its
protocol does not require a host component.
Since: 2.16
getPort
securityOriginGetPort Source #
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m Word16 | Returns: The port of the |
Gets the port of origin
. This function will always return 0 if the
port is the default port for the given protocol. For example,
http://example.com has the same security origin as
http://example.com:80, and this function will return 0 for a
SecurityOrigin
constructed from either URI. It will also
return 0 if origin
is opaque.
Since: 2.16
getProtocol
securityOriginGetProtocol Source #
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m (Maybe Text) | Returns: The protocol of the |
Gets the protocol of origin
, or Nothing
if origin
is opaque.
Since: 2.16
isOpaque
securityOriginIsOpaque Source #
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m Bool | Returns: |
Gets whether origin
is an opaque security origin, which does not
possess an associated protocol, host, or port.
Since: 2.16
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> Word16 |
|
-> m SecurityOrigin | Returns: A |
Create a new security origin from the provided protocol, host and port.
Since: 2.16
newForUri
securityOriginNewForUri Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m SecurityOrigin | Returns: A |
Create a new security origin from the provided URI. Components of
uri
other than protocol, host, and port do not affect the created
SecurityOrigin
.
Since: 2.16
ref
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m SecurityOrigin | Returns: The passed |
Atomically increments the reference count of origin
by one.
This function is MT-safe and may be called from any thread.
Since: 2.16
toString
securityOriginToString Source #
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m (Maybe Text) | Returns: a URI representing |
Gets a string representation of origin
. The string representation
is a valid URI with only protocol, host, and port components. It may
be Nothing
, but usually only if origin
is opaque.
Since: 2.16
unref
:: (HasCallStack, MonadIO m) | |
=> SecurityOrigin |
|
-> m () |
Atomically decrements the reference count of origin
by one.
If the reference count drops to 0, all memory allocated by
SecurityOrigin
is released. This function is MT-safe and may be
called from any thread.
Since: 2.16