WebUtils Methods |
The WebUtils type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GetContentDispositionHeaderValue(Boolean, String) | Obsolete.
Returns a Content-Disposition HTTP header value for a specific file name.
|
![]() ![]() | GetContentDispositionHeaderValue(String, String) | Obsolete.
Returns a Content-Disposition HTTP header value for a specific file name.
|
![]() ![]() | GetMimeType |
Returns the MIME mapping for the specified file name.
|
![]() ![]() | GetSafeMimeTypeValue | Obsolete.
Returns a sanitized Media Type string that is ready to be used as a Response.ContentType
value. This is to avoid XSS attacks with user-provided Media Type strings.
|
![]() ![]() | SetThreadCultureToInvariant |
Set the web worker thread culture to the invariant culture.
|
![]() ![]() | TrySetThreadCultureByRequestedUserLanguage |
Attempts to set the web worker thread culture to match the language requested by the Accept-Language HTTP header.
If no specific language is requested or setting the requested language fails, the thread culture is set to the invariant culture.
|