BasicHeaderValueFormatter.FormatNameValuePair Method

Definition

Overloads

FormatNameValuePair(INameValuePair, Boolean, IHeaderValueFormatter)

Formats one name-value pair, where the value is optional.

FormatNameValuePair(CharArrayBuffer, INameValuePair, Boolean)

Formats one name-value pair, where the value is optional.

FormatNameValuePair(INameValuePair, Boolean, IHeaderValueFormatter)

Formats one name-value pair, where the value is optional.

[Android.Runtime.Register("formatNameValuePair", "(Lorg/apache/http/NameValuePair;ZLorg/apache/http/message/HeaderValueFormatter;)Ljava/lang/String;", "")]
public static string? FormatNameValuePair (Org.Apache.Http.INameValuePair? nvp, bool quote, Org.Apache.Http.Message.IHeaderValueFormatter? formatter);
[<Android.Runtime.Register("formatNameValuePair", "(Lorg/apache/http/NameValuePair;ZLorg/apache/http/message/HeaderValueFormatter;)Ljava/lang/String;", "")>]
static member FormatNameValuePair : Org.Apache.Http.INameValuePair * bool * Org.Apache.Http.Message.IHeaderValueFormatter -> string

Parameters

nvp
INameValuePair

the name-value pair to format

quote
Boolean

true to always format with a quoted value, false to use quotes only when necessary

formatter
IHeaderValueFormatter

the formatter to use, or null for the Default

Returns

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

FormatNameValuePair(CharArrayBuffer, INameValuePair, Boolean)

Formats one name-value pair, where the value is optional.

[Android.Runtime.Register("formatNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;", "GetFormatNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_NameValuePair_ZHandler")]
public virtual Org.Apache.Http.Util.CharArrayBuffer? FormatNameValuePair (Org.Apache.Http.Util.CharArrayBuffer? buffer, Org.Apache.Http.INameValuePair? nvp, bool quote);
[<Android.Runtime.Register("formatNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;", "GetFormatNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_NameValuePair_ZHandler")>]
abstract member FormatNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.INameValuePair * bool -> Org.Apache.Http.Util.CharArrayBuffer
override this.FormatNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.INameValuePair * bool -> Org.Apache.Http.Util.CharArrayBuffer

Parameters

buffer
CharArrayBuffer

the buffer to append to, or null to create a new buffer

nvp
INameValuePair

the name-value pair to format

quote
Boolean

true to always format with a quoted value, false to use quotes only when necessary

Returns

Implements

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