MimeTypesHelperGetStoreWriter Method (String, String) |
Selects an appropriate
IStoreWriter based on the HTTP Accept header form a HTTP Request.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntaxpublic static IStoreWriter GetStoreWriter(
string acceptHeader,
out string contentType
)
Public Shared Function GetStoreWriter (
acceptHeader As String,
<OutAttribute> ByRef contentType As String
) As IStoreWriter
Parameters
- acceptHeader
- Type: SystemString
Value of the HTTP Accept Header. - contentType
- Type: SystemString
The Content Type header that should be sent in the Response to the Request.
Return Value
Type:
IStoreWriterA Writer for a Content Type the client accepts and the Content Type that should be sent to the client.
RemarksThis method does not take account of any quality/charset preference parameters included in the Accept Header.
See Also