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)
GType _gType() @property
SecurityOrigin self()Returns `this`, for use in `with` statements.
webkit.security_origin.SecurityOrigin newForUri(string uri)Create a new security origin from the provided.
string getHost()Gets the hostname of origin.
ushort getPort()Gets the port of origin.
string getProtocol()Gets the protocol of origin. Returns: The protocol of the #WebKitSecurityOrigin
string toString_()Gets 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.