webkit.security_origin
Module for [SecurityOrigin] class
class SecurityOrigin
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
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 #WebKitSecurityOriginstring toString_()Gets a string representation of origin.