HttpClient.AddCustomUserAgent(string User agent)
Add a new custom user agent. The user agent needs to be in proper format of ProductName/ProductVersion
Parameters:
Name | Type | Description |
---|---|---|
User agent | string | User agent to be added. |
Usage
---@type HttpClient
local httpclient;
---@type string
local User agent;
httpclient.AddCustomUserAgent(User agent)