Skip to main content

HttpClient.AddCustomUserAgent(string User agent)

Add a new custom user agent. The user agent needs to be in proper format of ProductName/ProductVersion

Parameters:

NameTypeDescription
User agentstringUser agent to be added.

Usage

---@type HttpClient
local httpclient;

---@type string
local User agent;


httpclient.AddCustomUserAgent(User agent)