Language

ICookieSpec.FormatCookies(IList<ICookie>) Method

Definition

Creates Cookie request headers for the supplied cookies.

[Android.Runtime.Register("formatCookies", "(Ljava/util/List;)Ljava/util/List;", "GetFormatCookies_Ljava_util_List_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.IHeader>? FormatCookies(System.Collections.Generic.IList<Org.Apache.Http.Cookies.ICookie>? cookies);
[<Android.Runtime.Register("formatCookies", "(Ljava/util/List;)Ljava/util/List;", "GetFormatCookies_Ljava_util_List_Handler:Org.Apache.Http.Cookies.ICookieSpecInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member FormatCookies : System.Collections.Generic.IList<Org.Apache.Http.Cookies.ICookie> -> System.Collections.Generic.IList<Org.Apache.Http.IHeader>

Parameters

cookies
IList<ICookie>

The list of cookies to format as request headers.

Returns

A list of IHeader objects containing the formatted Cookie headers. The specification can combine cookies in one header or produce separate headers.

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.

Applies to