module Parsed::HTTP::BasicAuth

Public Instance Methods

http_basic_auth_attribute(name, options = {}) click to toggle source

Defines an attribute pair to handle de/encoding HTTP Basic auth strings


Accepts default options, see Parsed:Base

# File lib/parsed/http/basicauth.rb, line 12
def http_basic_auth_attribute(name, options = {})
  __define_parsed_attributes_all_methods name, options do |raw_value|
    ::BasicAuth.parse raw_value
  end
end