GooglePlayInstant/Editor/QuickDeploy/HttpRequestHelper.cs
/// <summary>
/// Sends a general GET request to the specified endpoint along with specified parameters and headers.
/// </summary>
/// <param name="endpoint">The endpoint where the GET request should be sent. Must have no query params.</param>
/// <param name="getParams">A collection of key-value pairs to be attached to the endpoint as GET
/// parameters.</param>
/// <param name="getHeaders">A collection of key-value pairs to be added to the request headers.</param>
/// <returns>A reference to the WWW instance representing the request.</returns>
Sends a general GET request to the specified endpoint along with specified parameters and headers.
Sends a general GET request to the specified endpoint along with specified parameters and headers .
public static WWW SendHttpGetRequest(string endpoint, Dictionary<string, string> getParams,
            Dictionary<string, string> getHeaders)
        {
            return new WWW(GetEndpointWithGetParams(endpoint, getParams), null,
                GetCombinedDictionary(new WWWForm().headers, getHeaders));
        }
public static WWW SendHttpGetRequest ( string endpoint , Dictionary < string , string > getParams , Dictionary < string , string > getHeaders ) { return new WWW ( GetEndpointWithGetParams ( endpoint , getParams ) , null , GetCombinedDictionary ( new WWWForm ( ) . headers , getHeaders ) ) ; }
Sends a general GET request to the specified endpoint along with specified parameters and headers.
Sends a general GET request to the specified endpoint along with specified parameters and headers .
A reference to the WWW instance representing the request.
A reference to the WWW instance representing the request .
endpoint
string
The endpoint where the GET request should be sent. Must have no query params.
The endpoint where the GET request should be sent . Must have no query params .
getParams
Dictionary<string, string>
A collection of key-value pairs to be attached to the endpoint as GET
parameters.
A collection of key - value pairs to be attached to the endpoint as GET parameters .
getHeaders
Dictionary<string, string>
A collection of key-value pairs to be added to the request headers.
A collection of key - value pairs to be added to the request headers .