LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

UnityWebRequest.Head

public static Networking.UnityWebRequest Head(string uri);

Parameters

uriThe URI to which to send a HTTP HEAD request.

Returns

UnityWebRequest A UnityWebRequest configured to transmit a HTTP HEAD request.

Description

Creates a UnityWebRequest configured to send a HTTP HEAD request.

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.