| WebUtils Class | 
Namespace: PDTec.IceNet.Web.Utils
public static class WebUtils
The WebUtils type exposes the following members.
| Name | Description | |
|---|---|---|
| GetContentDispositionHeaderValue(Boolean, String) | 
            Returns a Content-Disposition HTTP header value for a specific file name.
              | |
| GetContentDispositionHeaderValue(String, String) | 
            Returns a Content-Disposition HTTP header value for a specific file name.
              | |
| GetSafeMimeTypeValue | 
            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.
              |