class Rejection
A queue admission rejection.
Definitions
def initialize(queue)
Signature
-
parameter
queueQueue The queue which rejected admission.
Implementation
def initialize(queue)
@queue = queue
end
def response
Signature
-
returns
Protocol::HTTP::Response The configured shedding response.
Implementation
def response
headers = {"content-type" => "text/plain"}.merge(@queue.shed_headers)
Protocol::HTTP::Response[@queue.shed_status, headers, ["Request queue is full.\n"]]
end