Show / Hide Table of Contents

    Class HeadersUtility

    This utility class is designed to make HTTP request headers operations easier to work with.

    Inheritance
    System.Object
    HeadersUtility
    Namespace: Cuemon.Web
    Assembly: Cuemon.Web.dll
    Syntax
    public static class HeadersUtility

    Methods

    | Improve this Doc

    Combine(NameValueCollection[])

    Combines the specified request-header values into one System.Collections.Specialized.NameValueCollection equivalent.

    Declaration
    public static NameValueCollection Combine(params NameValueCollection[] values)
    Parameters
    Type Name Description
    System.Collections.Specialized.NameValueCollection[] values

    A variable number of request-header values.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A System.Collections.Specialized.NameValueCollection equivalent to the combined request-header values.

    | Improve this Doc

    Combine(String[])

    Combines the specified request-header values into one System.Collections.Specialized.NameValueCollection equivalent.

    Declaration
    public static NameValueCollection Combine(params string[] values)
    Parameters
    Type Name Description
    System.String[] values

    A variable number of request-header values.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A System.Collections.Specialized.NameValueCollection equivalent to the combined request-header values.

    | Improve this Doc

    Remove(NameValueCollection, String[])

    Sanitizes the headers so that all keys (with matching values) is removed.

    Declaration
    public static NameValueCollection Remove(NameValueCollection headers, params string[] keys)
    Parameters
    Type Name Description
    System.Collections.Specialized.NameValueCollection headers

    The request-header values to sanitize.

    System.String[] keys

    The keys to use in the sanitation process.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A sanitized System.Collections.Specialized.NameValueCollection request-header equivalent of headers.

    | Improve this Doc

    Remove(String, String[])

    Sanitizes the headers so that all keys (with matching values) is removed.

    Declaration
    public static NameValueCollection Remove(string headers, params string[] keys)
    Parameters
    Type Name Description
    System.String headers

    The request-header values to sanitize.

    System.String[] keys

    The keys to use in the sanitation process.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A sanitized System.Collections.Specialized.NameValueCollection request-header equivalent of headers.

    | Improve this Doc

    RemoveDublets(NameValueCollection, String[])

    Sanitizes the headers so that all keys is assured only the latest value applied.

    Declaration
    public static NameValueCollection RemoveDublets(NameValueCollection headers, params string[] keys)
    Parameters
    Type Name Description
    System.Collections.Specialized.NameValueCollection headers

    The request-header values to sanitize.

    System.String[] keys

    The keys to use in the sanitation process.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A sanitized System.Collections.Specialized.NameValueCollection request-header equivalent of headers.

    | Improve this Doc

    RemoveDublets(String, String[])

    Sanitizes the headers so that all keys is assured only the latest value applied.

    Declaration
    public static NameValueCollection RemoveDublets(string headers, params string[] keys)
    Parameters
    Type Name Description
    System.String headers

    The request-header values to sanitize.

    System.String[] keys

    The keys to use in the sanitation process.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A sanitized System.Collections.Specialized.NameValueCollection request-header equivalent of headers.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX