basicAuth

fun basicAuth(username: String, password: String): Request

Adds the basic Authorization header for the given username and password.

Note: Both username and password need to be encoded in an ascii-compatible encoding!

Parameters

username

name of the user

password

password of the user