Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

UnityWebRequest.GetRequestHeader

public string GetRequestHeader(string name);

Parameters

nameName of the custom request header. Case-insensitive.

Returns

string The value of the custom request header. If no custom header with a matching name has been set, returns an empty string.

Description

Retrieves the value of a custom request header.

This method retrieves the value of custom (i.e. user-set) request headers. These are the headers which will be transmitted to the remote server as part of the HTTP request.

See Also: SetRequestHeader.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答