Unosquare
    Show / Hide Table of Contents

    Class HttpResponseExtensions

    Provides extension methods for types implementing IHttpResponse.

    Inheritance
    Object
    HttpResponseExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: EmbedIO
    Syntax
    public static class HttpResponseExtensions

    Methods

    DisableCaching(IHttpResponse)

    Sets the necessary headers to disable caching of a response on the client side.

    Declaration
    public static void DisableCaching(this IHttpResponse this)
    Parameters
    Type Name Description
    IHttpResponse this

    The IHttpResponse interface on which this method is called.

    SetEmptyResponse(IHttpResponse, Int32)

    Prepares a standard response without a body for the specified status code.

    Declaration
    public static void SetEmptyResponse(this IHttpResponse this, int statusCode)
    Parameters
    Type Name Description
    IHttpResponse this

    The IHttpResponse interface on which this method is called.

    Int32 statusCode

    The HTTP status code of the response.

    Comments

    Back to top Copyright © 2017-2019 Unosquare