lib/sensu/api/http_handler.rb
def process_http_request
        log_request
        parse_parameters
        create_response
        set_headers
        if authorized?
          if connected?
            route_request
          else
            error!
          end
        else
          unauthorized!
        end
      end
# Process a HTTP request. Log the request, parse the HTTP query
# parameters, create the HTTP response object, set the cors HTTP
# response headers, determine if the request is authorized,
# determine if the API is connected to Redis and the Transport,
# and then route the HTTP request (responding to the request).
# This method is called by EM HTTP Server when handling a new
# connection.
Process a HTTP request. Log the request, parse the HTTP query
parameters, create the HTTP response object, set the cors HTTP
response headers, determine if the request is authorized,
determine if the API is connected to Redis and the Transport,
and then route the HTTP request (responding to the request).
This method is called by EM HTTP Server when handling a new
connection.
Process a HTTP request . Log the request parse the HTTP query parameters create the HTTP response object set the cors HTTP response headers determine if the request is authorized determine if the API is connected to Redis and the Transport and then route the HTTP request ( responding to the request ) . This method is called by EM HTTP Server when handling a new connection .
def process_http_request
        log_request
        parse_parameters
        create_response
        set_headers
        if authorized?
          if connected?
            route_request
          else
            error!
          end
        else
          unauthorized!
        end
      end
def process_http_request log_request parse_parameters create_response set_headers if authorized? if connected? route_request else error! end else unauthorized! end end
Process a HTTP request.
Process a HTTP request .