Skip to main content

http.addHeader

http.addHeader(name, value)

Description

Adds the header to all subsequent requests.

Parameters

ParameterTypeExplanation
nameStringThe name of the header
valueStringThe value to set the header to

Example

http = option.http

auth = api.getAuth("1gtw_creds")
http.addHeader("Username", auth.user)