class ActiveEndpoint::Request
Public Instance Methods
endpoint()
click to toggle source
# File lib/active_endpoint/request.rb, line 41 def endpoint rails_endpoint_name(rails_endpoint(self)) end
method()
click to toggle source
# File lib/active_endpoint/request.rb, line 37 def method request_method.downcase.to_sym end
probe()
click to toggle source
# File lib/active_endpoint/request.rb, line 5 def probe { base_url: base_url, body: body, content_charset: content_charset, content_length: content_length, content_type: content_type, endpoint: endpoint, fullpath: fullpath, http_version: http_version, http_connection: http_connection, http_accept_encoding: http_accept_encoding, http_accept_language: http_accept_language, ip: ip, media_type: media_type, media_type_params: media_type_params, method: method, params: params, path: path, path_info: path_info, pattern: pattern, port: port, protocol: protocol, query_string: query_string, request_method: request_method, server_name: server_name, ssl: ssl?, url: url, xhr: xhr? } end
Private Instance Methods
http_accept_encoding()
click to toggle source
# File lib/active_endpoint/request.rb, line 47 def http_accept_encoding get_header('HTTP_ACCEPT_ENCODING') end
http_accept_language()
click to toggle source
# File lib/active_endpoint/request.rb, line 51 def http_accept_language get_header('HTTP_ACCEPT_LANGUAGE') end
http_connection()
click to toggle source
# File lib/active_endpoint/request.rb, line 55 def http_connection get_header('HTTP_CONNECTION') end
http_version()
click to toggle source
# File lib/active_endpoint/request.rb, line 59 def http_version get_header('HTTP_VERSION') end
params()
click to toggle source
# File lib/active_endpoint/request.rb, line 63 def params rails_request_params(self) end
pattern()
click to toggle source
# File lib/active_endpoint/request.rb, line 67 def pattern rails_route_pattern(self) end
protocol()
click to toggle source
# File lib/active_endpoint/request.rb, line 71 def protocol get_header('SERVER_PROTOCOL') end
server_name()
click to toggle source
# File lib/active_endpoint/request.rb, line 75 def server_name get_header('SERVER_NAME') end