API reference
API reference
Select your platform
No SDKs available
No versions available

VRequest Class

Extends IVRequest, ILogSource
Helper class for performing http web requests using UnityWebRequest

Properties

IVLogger Logger[Get]
Url to be used for the vrequest
Url parameters to be used for the vrequest
The content type to be used
Method the request will be used
Script used as download handler
Script used as upload handler
Timeout in seconds
Timeout in milliseconds
If request is currently queued to run
If request is currently transmitting or receiving data
If request is currently decoding following a response
If first response has been received
If request has completed queueing and running a request
Completion source task
Response Code if applicable
Response error
Current progress for get requests
Current progress for download

Public Statics

Ensures only this many requests can run at one time

Events

Callback on request upload progress change
Callback on request download progress change
Callback on request first response

Fields

If request is queued to run or running

Protected Fields

Obtains uri from the url and url parameters

Member Functions

Resets all data
Performs a request from the main thread or a background thread
Method to cancel a VRequest
Performs a header request on a uri
Performs a get request on a file url
Performs a download from a specified location to a new location
string GetTmpDownloadPath
( string downloadPath )
Checks if a file exists at a specified location using async calls
Performs a text request with an option partial response callback
Performs a request for text & decodes it into json
Perform a json get request with the option for a partial response
Perform a json get request with the option for a partial response
Perform a json post request with raw data and the option for a partial response
Perform a json post request with string data and the option for a partial response
Perform a json put request with the option for a partial response
Perform a json put request with raw data and the option for a partial response
Perform a json put request with string data and the option for a partial response

Protected Functions

virtual Uri GetUri ( )
Obtain request method id
Obtains request headers if applicable
Generates UnityWebRequest
Wait while request is running
Attempts to obtain any errors
Handles dispose and removal of request from running queue
Raise first response callback
Update download progress
Returns true if no error
Did you find this page helpful?
Thumbs up icon
Thumbs down icon