Unosquare
    Show / Hide Table of Contents

    Class WebServerOptionsBaseExtensions

    Provides extension methods for classes derived from WebServerOptionsBase.

    Inheritance
    Object
    WebServerOptionsBaseExtensions
    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 WebServerOptionsBaseExtensions

    Methods

    WithSupportCompressedRequests<TOptions>(TOptions, Boolean)

    Adds a URL prefix.

    Declaration
    public static TOptions WithSupportCompressedRequests<TOptions>(this TOptions this, bool value)
        where TOptions : WebServerOptionsBase
    Parameters
    Type Name Description
    TOptions this

    The object on which this method is called.

    Boolean value

    If true, enable support for compressed request bodies.

    Returns
    Type Description
    TOptions

    this with its SupportCompressedRequests property set to value.

    Type Parameters
    Name Description
    TOptions

    The type of the object on which this method is called.

    Comments

    Back to top Copyright © 2017-2019 Unosquare