Search Results for

    Show / Hide Table of Contents

    Struct HttpHeader

    Implements
    IValidatable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    [Serializable]
    public struct HttpHeader : IValidatable

    Constructors

    | Edit this page View Source

    HttpHeader(string, string, bool, string)

    Declaration
    public HttpHeader(string key, string value, bool removeOnRedirect = false, string logValue = null)
    Parameters
    Type Name Description
    string key
    string value
    bool removeOnRedirect
    string logValue

    Fields

    | Edit this page View Source

    AuthorizationKey

    Declaration
    public const string AuthorizationKey = "Authorization"
    Field Value
    Type Description
    string
    | Edit this page View Source

    BearerTemplate

    Declaration
    public const string BearerTemplate = "Bearer {0}"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentTypeKey

    Declaration
    public const string ContentTypeKey = "Content-Type"
    Field Value
    Type Description
    string
    | Edit this page View Source

    XApiKeyKey

    Declaration
    public const string XApiKeyKey = "x-api-key"
    Field Value
    Type Description
    string
    | Edit this page View Source

    XiApiKeyKey

    Declaration
    public const string XiApiKeyKey = "xi-api-key"
    Field Value
    Type Description
    string
    | Edit this page View Source

    key

    Declaration
    [SerializeField]
    [FormerlySerializedAs("name")]
    public string key
    Field Value
    Type Description
    string
    | Edit this page View Source

    logValue

    Declaration
    [SerializeField]
    public string logValue
    Field Value
    Type Description
    string
    | Edit this page View Source

    removeOnRedirect

    Declaration
    [SerializeField]
    public bool removeOnRedirect
    Field Value
    Type Description
    bool
    | Edit this page View Source

    value

    Declaration
    [SerializeField]
    public string value
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Bearer(string, bool)

    Declaration
    public static HttpHeader Bearer(string token, bool removeOnRedirect = false)
    Parameters
    Type Name Description
    string token
    bool removeOnRedirect
    Returns
    Type Description
    HttpHeader
    | Edit this page View Source

    ContentType(MimeType, bool)

    Declaration
    public static HttpHeader ContentType(MimeType contentType, bool removeOnRedirect = false)
    Parameters
    Type Name Description
    MimeType contentType
    bool removeOnRedirect
    Returns
    Type Description
    HttpHeader
    | Edit this page View Source

    IsValid()

    Declaration
    public readonly bool IsValid()
    Returns
    Type Description
    bool
    | Edit this page View Source

    Validate()

    Validates the object's parameters and throws if invalid.

    Declaration
    public readonly void Validate()
    | Edit this page View Source

    XApiKey(string, bool)

    Declaration
    public static HttpHeader XApiKey(string apiKey, bool removeOnRedirect = false)
    Parameters
    Type Name Description
    string apiKey
    bool removeOnRedirect
    Returns
    Type Description
    HttpHeader
    | Edit this page View Source

    XiApiKey(string, bool)

    Declaration
    public static HttpHeader XiApiKey(string apiKey, bool removeOnRedirect = false)
    Parameters
    Type Name Description
    string apiKey
    bool removeOnRedirect
    Returns
    Type Description
    HttpHeader

    Implements

    IValidatable

    Extension Methods

    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation