GooglePlayInstant/Editor/QuickDeploy/GcpClient.cs
/// <summary>
/// Helps send HTTP POST request that includes Authorization header to a GCP endpoint.
/// </summary>
/// <param name="endpoint">A GCP endpoint to which the request is going.</param>
/// <param name="content">Content bytes to be put in the body of the request.</param>
/// <param name="contentType">Type of content to be used in headers.</param>
Helps send HTTP POST request that includes Authorization header to a GCP endpoint.
Helps send HTTP POST request that includes Authorization header to a GCP endpoint .
private static WWW SendAuthenticatedPostRequest(string endpoint, byte[] content, string contentType)
        {
            var requestHeaders = GetDictionaryWithAuthorizationHeader(
                new Dictionary<string, string> {{"Content-Type", contentType}});
            return HttpRequestHelper.SendHttpPostRequest(endpoint, content, requestHeaders);
        }
private static WWW SendAuthenticatedPostRequest ( string endpoint , byte [ ] content , string contentType ) { var requestHeaders = GetDictionaryWithAuthorizationHeader ( new Dictionary < string , string > { { " " , contentType } } ) ; return HttpRequestHelper . SendHttpPostRequest ( endpoint , content , requestHeaders ) ; }
Helps send HTTP POST request that includes Authorization header to a GCP endpoint.
Helps send HTTP POST request that includes Authorization header to a GCP endpoint .
endpoint
string
A GCP endpoint to which the request is going.
A GCP endpoint to which the request is going .
content
byte[]
Content bytes to be put in the body of the request.
Content bytes to be put in the body of the request .
contentType
string
Type of content to be used in headers.
Type of content to be used in headers .