class Protocol::HTTP::Header::Authorization

def self.basic(username, password)

@returns [Authorization] The basic authorization header.
@parameter password [String] The password.
@parameter username [String] The username.

Generate a new basic authorization header, encoding the given username and password.
def self.basic(username, password)
	strict_base64_encoded = ["#{username}:#{password}"].pack("m0")
	
	self.new(
		"Basic #{strict_base64_encoded}"
	)
end