Język

DownloadManager.Request.AddRequestHeader(String, String) Method

Definition

Add an HTTP header to be included with the download request.

[Android.Runtime.Register("addRequestHeader", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetAddRequestHeader_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.App.DownloadManager.Request? AddRequestHeader(string? header, string? value);
[<Android.Runtime.Register("addRequestHeader", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetAddRequestHeader_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member AddRequestHeader : string * string -> Android.App.DownloadManager.Request
override this.AddRequestHeader : string * string -> Android.App.DownloadManager.Request

Parameters

header
String

String: HTTP header name

value
String

String: header value

Returns

this object

Attributes

Remarks

Add an HTTP header to be included with the download request. The header will be added to the end of the list.

See also:

Android reference for android.app.DownloadManager.Request.addRequestHeader.

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