Click or drag to resize

MimeTypesHelperCustomHttpAcceptHeader Method (IEnumerableString, IEnumerableString)

Creates a Custom HTTP Accept Header containing the given selection of MIME Types where those MIME Types also appear in the list of supported Types.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static string CustomHttpAcceptHeader(
	IEnumerable<string> mimeTypes,
	IEnumerable<string> supportedTypes
)

Parameters

mimeTypes
Type: System.Collections.GenericIEnumerableString
Enumeration of MIME Types to use.
supportedTypes
Type: System.Collections.GenericIEnumerableString
Enumeration of supported MIME Types.

Return Value

Type: String

[Missing <returns> documentation for "M:VDS.RDF.MimeTypesHelper.CustomHttpAcceptHeader(System.Collections.Generic.IEnumerable{System.String},System.Collections.Generic.IEnumerable{System.String})"]

Remarks

Note: No validation is done on MIME Types so it is possible to generated a malformed header using this function.

Use this function when you wish to generate a Custom Accept Header where the URI to which you are making requests supports a set range of URIs (given in the mimeTypes parameter) where that range of types may exceed the range of types actually supported by the library or your response processing code.

See Also