Skip to main content

rest.basic

rest.basic(user, pw)

Description

Sets the username and password for basic authentication.

Parameters

ParameterTypeExplanation
userStringThe username for basic authentication
pwStringThe password for basic authentication

Example

http = option.rest

http.basic("admin","admin")