Foundation.NSMutableUrlRequest.Item Property
Gets or sets the value of the specified HTTP header.

Syntax

This is the default property for this class.

public string this [string key] { get; set; }

Parameters

key
HTTP Header Name.

Value

Remarks

Use this indexer value to set or get the value of a specific HTTP header.

c# Example

void SetHeader (NSMutableUrlRequest request)
{
    request ["User-Agent"] = "MonoMac Spider Program";
}
	    

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0