module HttpThreshold::RequestHold

Public Instance Methods

exec(sock, ver, path) click to toggle source
Calls superclass method
# File lib/http_threshold/request_holder.rb, line 4
def exec(sock, ver, path)
  host = @header["host"].first
  # here can stop the request
  HttpThreshold::Client.sleep_until_allowed(host) do
    super
  end
end