Unosquare
    Show / Hide Table of Contents

    Class HttpRangeNotSatisfiableException

    When thrown, breaks the request handling control flow and sends a redirection response to the client.

    Inheritance
    Object
    HttpException
    HttpRangeNotSatisfiableException
    Implements
    IHttpException
    Inherited Members
    HttpException.InternalServerError(String, Object)
    HttpException.Unauthorized(String, Object)
    HttpException.Forbidden(String, Object)
    HttpException.BadRequest(String, Object)
    HttpException.NotFound(String, Object)
    HttpException.MethodNotAllowed(String, Object)
    HttpException.NotAcceptable()
    HttpException.NotAcceptable(String)
    HttpException.RangeNotSatisfiable()
    HttpException.RangeNotSatisfiable(Nullable<Int64>)
    HttpException.Redirect(String)
    HttpException.Redirect(String, Int32)
    HttpException.Redirect(String, HttpStatusCode)
    HttpException.StatusCode
    HttpException.DataObject
    HttpException.IHttpException.Message
    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 Content-Range header in the response.

    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
    HttpException.PrepareResponse(IHttpContext)
    Remarks

    This method does nothing; there is no need to call base.PrepareResponse in overrides of this method.

    Implements

    IHttpException

    Comments

    Back to top Copyright © 2017-2019 Unosquare