webkit.security_origin

Module for [SecurityOrigin] class

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
SecurityOrigin self() nothrowReturns `this`, for use in `with` statements.
webkit.security_origin.SecurityOrigin newForUri(string uri) static nothrowCreate a new security origin from the provided.
string getHost() nothrowGets the hostname of origin.
ushort getPort() nothrowGets the port of origin.
string getProtocol() nothrowGets the protocol of origin. Returns: The protocol of the #WebKitSecurityOrigin
string toString_() nothrowGets a string representation of origin.
Constructors
this(void * ptr, Flag!"Take" take)
this(string protocol, string host, ushort port)Create a new security origin from the provided protocol, host and port.