Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Head

Creates a UnityWebRequest configured to send a HTTP HEAD request.
Read time 1 minuteLast updated 7 days ago

Definition

Head(string)

Creates a UnityWebRequest configured to send a HTTP
HEAD
request.
public static UnityWebRequest Head(string uri)

Parameters

The URI to which to send a HTTP
HEAD
request.

Returns

Type

Description

UnityWebRequestA UnityWebRequest configured to transmit a HTTP
HEAD
request.

Remarks

This method creates a UnityWebRequest, sets the verb to
HEAD
and sets the target URL to the string argument uri. It sets no custom flags or headers.
This method attaches no DownloadHandler or UploadHandler to the UnityWebRequest.

Head(Uri)

Creates a UnityWebRequest configured to send a HTTP
HEAD
request.
public static UnityWebRequest Head(Uri uri)

Parameters

uri

The URI to which to send a HTTP
HEAD
request.

Returns

Type

Description

UnityWebRequestA UnityWebRequest configured to transmit a HTTP
HEAD
request.

Remarks

This method creates a UnityWebRequest, sets the verb to
HEAD
and sets the target URL to the string argument uri. It sets no custom flags or headers.
This method attaches no DownloadHandler or UploadHandler to the UnityWebRequest.