Search Results for

    Show / Hide Table of Contents

    Class UnityWebRequestExtensions

    Inheritance
    object
    UnityWebRequestExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public static class UnityWebRequestExtensions

    Methods

    | Edit this page View Source

    SetRequestHeader(UnityWebRequest, HttpHeader)

    Declaration
    public static void SetRequestHeader(this UnityWebRequest request, HttpHeader header)
    Parameters
    Type Name Description
    UnityWebRequest request
    HttpHeader header
    | Edit this page View Source

    TryGetErrorMessage(UnityWebRequest, out string)

    Declaration
    public static bool TryGetErrorMessage(this UnityWebRequest uwr, out string protocolError)
    Parameters
    Type Name Description
    UnityWebRequest uwr
    string protocolError
    Returns
    Type Description
    bool
    | Edit this page View Source

    TryGetRetryAfter(UnityWebRequest, TimeSpan?, TimeSpan?)

    Parses Retry-After / vendor-specific rate-limit reset headers and returns the delay to wait. Returns null when no usable hint exists.

    Declaration
    public static TimeSpan? TryGetRetryAfter(this UnityWebRequest uwr, TimeSpan? clampMin = null, TimeSpan? clampMax = null)
    Parameters
    Type Name Description
    UnityWebRequest uwr
    TimeSpan? clampMin
    TimeSpan? clampMax
    Returns
    Type Description
    TimeSpan?
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation