docs.unity3d.com
    Show / Hide Table of Contents

    Interface HttpClient

    A simple blocking Http Client using UnityWebRequest.

    Namespace: Utils
    Syntax
    public interface HttpClient

    Methods

    ProcessHttpGetBlocking(String, String)

    A get request that can optionally take an authorization token to be wrapped as Bearer auth.

    Declaration
    string ProcessHttpGetBlocking(string url, [CanBeNull] string authorization = null)
    Parameters
    Type Name Description
    String url
    String authorization
    Returns
    Type Description
    String

    Resulting string from download handler. Throws exception only in batch mode.

    ProcessHttpPostBlocking(String, UploadHandler, String)

    A Post request that can optionally take an authorization token to be wrapped as Bearer auth.

    Declaration
    string ProcessHttpPostBlocking(string url, UploadHandler uh, [CanBeNull] string authorization = null)
    Parameters
    Type Name Description
    String url
    UploadHandler uh
    String authorization
    Returns
    Type Description
    String

    Resulting string from download handler. Throws exception only in batch mode.

    ProcessHttpPutBlocking(String, UploadHandler, String)

    A Put request that can optionally take an authorization token to be wrapped as Bearer auth.

    Declaration
    string ProcessHttpPutBlocking(string url, UploadHandler uh, [CanBeNull] string authorization = null)
    Parameters
    Type Name Description
    String url
    UploadHandler uh
    String authorization
    Returns
    Type Description
    String

    Resulting string from download handler. Throws exception only in batch mode.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023