ICookieSpec.Parse(IHeader, CookieOrigin) Method
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.
Parse the "Set-Cookie"
Header into an array of Cookies.
[Android.Runtime.Register("parse", "(Lorg/apache/http/Header;Lorg/apache/http/cookie/CookieOrigin;)Ljava/util/List;", "GetParse_Lorg_apache_http_Header_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieSpecInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.Collections.Generic.IList<Org.Apache.Http.Cookies.ICookie>? Parse (Org.Apache.Http.IHeader? header, Org.Apache.Http.Cookies.CookieOrigin? origin);
[<Android.Runtime.Register("parse", "(Lorg/apache/http/Header;Lorg/apache/http/cookie/CookieOrigin;)Ljava/util/List;", "GetParse_Lorg_apache_http_Header_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieSpecInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Parse : Org.Apache.Http.IHeader * Org.Apache.Http.Cookies.CookieOrigin -> System.Collections.Generic.IList<Org.Apache.Http.Cookies.ICookie>
Parameters
- header
- IHeader
the Set-Cookie
received from the server
- origin
- CookieOrigin
details of the cookie origin
Returns
- Attributes
Exceptions
if an exception occurs during parsing
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.
Applies to
See also
- <xref:Org.Apache.Http.Cookies.ICookieSpec.Validate(Org.Apache.Http.Cookies.ICookie%2c+Org.Apache.Http.Cookies.CookieOrigin)>