StructureHTTPTypes
HTTPFields.WWWAuthenticate
Represents the HTTP
WWW-Authenticate header.struct WWWAuthenticate
Overview
See Also: WWW-Authenticate
Topics
Initializers
init(stringLiteral: String)Creates aWWW-Authenticateheader from a string literal.init(value: String)Creates aWWW-Authenticateheader from a serialized header value.
Instance Properties
let value: StringThe serialized header value.
Type Methods
static func basic(realm: String) -> WWWAuthenticateCreates a Basic authentication challenge, advertising the UTF-8 charset thatBasicAuthorizationdecodes with.static func bearer(realm: String) -> WWWAuthenticateCreates a Bearer authentication challenge.
Relationships
Conforms To
Swift.EquatableSwift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.SendableSwift.SendableMetatype