22 references to HttpProcessUtility
System.Data.Services (22)
parent\Client\System\Data\Services\Client\BatchStream.cs (1)
294
KeyValuePair<string, string>[] parameters =
HttpProcessUtility
.ReadContentType(contentType, out mime, out encoding);
System\Data\Services\DataService.cs (11)
598
return
HttpProcessUtility
.EncodingFromAcceptCharset(acceptCharset);
633
string mime =
HttpProcessUtility
.SelectMimeType(acceptTypesText, availableTypes);
921
host.ResponseContentType =
HttpProcessUtility
.BuildContentType(host.ResponseContentType, encoding);
996
host.ResponseContentType =
HttpProcessUtility
.SelectRequiredMimeType(
1015
service.OperationContext.Host.ResponseContentType =
HttpProcessUtility
.SelectRequiredMimeType(
1278
mime =
HttpProcessUtility
.SelectRequiredMimeType(
1286
mime =
HttpProcessUtility
.SelectRequiredMimeType(
1298
Encoding encoding =
HttpProcessUtility
.EncodingFromAcceptCharset(host.RequestAcceptCharSet);
1299
host.ResponseContentType =
HttpProcessUtility
.BuildContentType(mime, encoding);
1572
host.ResponseContentType =
HttpProcessUtility
.BuildContentType(host.ResponseContentType, encoding);
2361
StreamWriter writer = new StreamWriter(responseStream,
HttpProcessUtility
.FallbackEncoding);
System\Data\Services\ErrorHandler.cs (3)
396
contentType =
HttpProcessUtility
.SelectMimeType(accept, availableTypes);
408
encoding =
HttpProcessUtility
.EncodingFromAcceptCharset(acceptCharset);
417
encoding = encoding ??
HttpProcessUtility
.FallbackEncoding;
System\Data\Services\Serializers\Deserializer.cs (2)
144
HttpProcessUtility
.ReadContentType(host.RequestContentType, out mimeType, out encoding);
243
HttpProcessUtility
.ReadContentType(host.RequestContentType, out mimeType, out encoding);
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
189
KeyValuePair<string, string>[] contentTypeParameters =
HttpProcessUtility
.ReadContentType(mediaType, out mime, out encoding);
198
typeParameterValue =
HttpProcessUtility
.GetParameterValue(contentTypeParameters, XmlConstants.AtomTypeAttributeName);
System\Data\Services\WebUtil.cs (3)
1532
if (!
HttpProcessUtility
.TryReadVersion(versionText, out version))
1570
if (!
HttpProcessUtility
.TryReadVersion(versionText, out version))
1609
string mime =
HttpProcessUtility
.SelectMimeType(mimeTypeText, new string[] { XmlConstants.MimeApplicationAtom });