123456789_123456789_123456789_123456789_123456789_

Class: Gem::GemcutterUtilities::WebauthnListener::MethodNotAllowedResponse

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Response
Instance Chain:
self, Response
Inherits: Gem::GemcutterUtilities::WebauthnListener::Response
Defined in: lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb

Class Method Summary

Response - Inherited

Instance Attribute Summary

Response - Inherited

Instance Method Summary

Constructor Details

This class inherits a constructor from Gem::GemcutterUtilities::WebauthnListener::Response

Instance Method Details

#add_access_control_headers (private)

[ GitHub ]

  
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb', line 157

def add_access_control_headers
  super
  @http_response["allow"] = %w[GET OPTIONS]
end

#code (private)

[ GitHub ]

  
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb', line 149

def code
  405
end

#reason_phrase (private)

[ GitHub ]

  
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb', line 153

def reason_phrase
  "Method Not Allowed"
end