MonobjcMonobjc Documented Class Library
SetAllHTTPHeaderFields Method (headerFields)
NamespacesMonobjc.FoundationNSMutableURLRequestSetAllHTTPHeaderFields(NSDictionary)

Replaces the receiver's header fields with the passed values.

Original signature is '- (void)setAllHTTPHeaderFields:(NSDictionary *)headerFields'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetAllHTTPHeaderFields(
	NSDictionary headerFields
)
Public Overridable Sub SetAllHTTPHeaderFields ( _
	headerFields As NSDictionary _
)
public:
virtual void SetAllHTTPHeaderFields(
	NSDictionary^ headerFields
)
Parameters
headerFields (NSDictionary)
A dictionary with the new header fields. HTTP header fields must be string values; therefore, each object and key in the headerFields dictionary must be a subclass of NSString. If either the key or value for a key-value pair is not a subclass of NSString, the key-value pair is skipped.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)