HttpHeader class

A singleton class to manage HTTP headers for authentication.

Constructors

HttpHeader()
Factory constructor to get the singleton instance.
factory

Properties

contentType → String
no setter
contentTypeKey → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
langKey → String
no setter
langValue → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenKey → String
no setter
tokenType → String
no setter
usertoken → String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAuthHeader(String token, {String Bearer = "Bearer", String tokenType = "", String tokenKey = "Authorization"}) → void
Sets the authentication header with the provided token and optional parameters.
setLangHeader({String? lang, String key = "x-lang"}) → void
Sets the language header.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited