SecurityOrigin

A security boundary for websites.

#WebKitSecurityOrigin is a representation of a security domain defined by websites. A security origin consists of a protocol, a hostname, and an optional port number.

Resources with the same security origin can generally access each other for client-side scripting or database access. When comparing origins, beware that if both protocol and host are null, the origins should not be treated as equal.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string protocol, string host, ushort port)

Create a new security origin from the provided protocol, host and port.

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
getHost
string getHost()

Gets the hostname of origin.

getPort
ushort getPort()

Gets the port of origin.

getProtocol
string getProtocol()

Gets the protocol of origin.

self
SecurityOrigin self()

Returns this, for use in with statements.

toString_
string toString_()

Gets a string representation of origin.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()
newForUri
webkit.security_origin.SecurityOrigin newForUri(string uri)

Create a new security origin from the provided.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.