NSMutableUrlRequest.Item[String] Property
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.
Gets or sets the value of the specified HTTP header.
public string this[string key] { get; set; }
member this.Item(string) : string with get, set
Parameters
- key
- String
HTTP Header Name.
Property Value
Remarks
Use this indexer value to set or get the value of a specific HTTP header.
void SetHeader (NSMutableUrlRequest request)
{
request ["User-Agent"] = "XamarinMac Spider Program";
}