class T2Server::HttpCredentials

This class serves as a base class for concrete HTTP credential systems.

Instances of this class cannot be used to authenticate a connection; please use HttpBasic instead.



The username held by these credentials.

Public Instance Methods

inspect → string click to toggle source

Override the Kernel#inspect method so that the password is not exposed when it is called.

# File lib/t2-server/net/credentials.rb, line 72
def inspect
  @@to_s.bind(self).call.sub!(%r>\z/) {" Username:#{self}>"}
to_s → string click to toggle source

Return a String representation of these credentials. Just the username is returned; the password is kept hidden.

# File lib/t2-server/net/credentials.rb, line 60
def to_s