Class HttpRangeNotSatisfiableException
When thrown, breaks the request handling control flow and sends a redirection response to the client.
Implements
Inherited Members
Namespace: EmbedIO
Syntax
public class HttpRangeNotSatisfiableException : HttpException, IHttpException
Constructors
HttpRangeNotSatisfiableException()
Initializes a new instance of the HttpRangeNotSatisfiableException class.
without specifying a value for the response's Content-Range
header.
Declaration
public HttpRangeNotSatisfiableException()
HttpRangeNotSatisfiableException(Nullable<Int64>)
Initializes a new instance of the HttpRangeNotSatisfiableException class.
Declaration
public HttpRangeNotSatisfiableException(long? contentLength)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Int64> | contentLength | The total length of the requested resource, expressed in bytes,
or null to omit the |
Properties
ContentLength
Gets the total content length to be specified
on the response's Content-Range
header.
Declaration
public long? ContentLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
Methods
PrepareResponse(IHttpContext)
Sets necessary headers, as required by the nature
of the HTTP exception (e.g. Location
for
HttpRedirectException).
Declaration
public override void PrepareResponse(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | The HTTP context of the response. |
Overrides
Remarks
This method does nothing; there is no need to call
base.PrepareResponse
in overrides of this method.