CookieOrigin(String, Int32, String, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an origin with the host, port, path, and connection security used to parse, validate, or match cookies.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Z)V", "")]
public CookieOrigin(string? host, int port, string? path, bool secure);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Z)V", "")>]
new Org.Apache.Http.Cookies.CookieOrigin : string * int * string * bool -> Org.Apache.Http.Cookies.CookieOrigin
Parameters
- host
- String
The origin host. It must not be null or blank. It is converted to lowercase using the English locale, but is not trimmed.
- port
- Int32
The origin port number. It must be zero or greater.
- path
- String
The origin path. It must not be null. An empty or blank path is stored as /; other paths are stored unchanged.
- secure
- Boolean
true if the origin uses a secure connection; otherwise, false.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.