Udostępnij za pośrednictwem


URLConnection.HeaderFields Property

Definition

Returns an unmodifiable Map of the header fields.

public virtual System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? HeaderFields { [Android.Runtime.Register("getHeaderFields", "()Ljava/util/Map;", "GetGetHeaderFieldsHandler")] get; }
[<get: Android.Runtime.Register("getHeaderFields", "()Ljava/util/Map;", "GetGetHeaderFieldsHandler")>]
member this.HeaderFields : System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>>

Property Value

a Map of header fields

Attributes

Remarks

Returns an unmodifiable Map of the header fields. The Map keys are Strings that represent the response-header field names. Each Map value is an unmodifiable List of Strings that represents the corresponding field values.

Added in 1.4.

Java documentation for java.net.URLConnection.getHeaderFields().

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