Static Methodasync-http-client 1.23.0AsyncHTTPClient
basic(credentials:)
HTTP basic auth.
HTTPHandler.swift:357static func basic(credentials: String) -> HTTPClient.Authorization
This version uses the raw string directly.
Other members in extension
Type members
static func basic(username: String, password: String
) -> HTTPClient.Authorization HTTP basic auth.
static func bearer(tokens: String
) -> HTTPClient.Authorization HTTP bearer auth
Instance members
var headerValue: String
The header string for this auth field.