BidirectionalStream.Builder.AddHeader(String, String) 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.
Adds a request header.
[Android.Runtime.Register("addHeader", "(Ljava/lang/String;Ljava/lang/String;)Landroid/net/http/BidirectionalStream$Builder;", "GetAddHeader_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=34)]
public abstract Android.Net.Http.BidirectionalStream.Builder AddHeader(string header, string value);
[<Android.Runtime.Register("addHeader", "(Ljava/lang/String;Ljava/lang/String;)Landroid/net/http/BidirectionalStream$Builder;", "GetAddHeader_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member AddHeader : string * string -> Android.Net.Http.BidirectionalStream.Builder
Parameters
- header
- String
the header name. This value cannot be null.
- value
- String
the header value. This value cannot be null.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Adds a request header. Returns builder to facilitate chaining.
Android reference for android.net.http.BidirectionalStream.Builder.addHeader.
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.