Class ResponseExtensions
- Namespace
- AngleSharp.Io
- Assembly
- AngleSharp.dll
Represents some useful extensions for the response.
public static class ResponseExtensions
- Inheritance
-
ResponseExtensions
- Inherited Members
Methods
GetContentType(IResponse)
Gets the content-type from the response's headers. The default type is derived from the file extension of the path, if any.
public static MimeType GetContentType(this IResponse response)
Parameters
response
IResponseThe response to examine.
Returns
- MimeType
The provided or default content-type.
GetContentType(IResponse, string)
Gets the content-type from the response's headers.
public static MimeType GetContentType(this IResponse response, string defaultType)
Parameters
Returns
- MimeType
The provided or default content-type.