no_auth.go raw

   1  package auth
   2  
   3  import "net/http"
   4  
   5  type NoAuth struct{}
   6  
   7  // NewNoAuth return an auth with no authentication method
   8  func NewNoAuth() *NoAuth {
   9  	return &NoAuth{}
  10  }
  11  
  12  func (t *NoAuth) Headers() http.Header {
  13  	return http.Header{}
  14  }
  15  
  16  func (t *NoAuth) AnonymizedHeaders() http.Header {
  17  	return http.Header{}
  18  }
  19