Sha256: 16bffb51e63fbd09d8fa8aae54e9e6e0de9484f2eb1a9fdd6b3ee62a544cb267
Contents?: true
Size: 475 Bytes
Versions: 8
Compression:
Stored size: 475 Bytes
Contents
# -*- encoding: binary -*- # An even more horrible way to make HTTP requests, just make them without # reading a response! class HTTP_Spew::HitNRun < HTTP_Spew::Request # frozen response RESPONSE = [ 666, { "Content-Length" => "0".freeze, "Content-Type" => "hit/run".freeze }.freeze, [].freeze ].freeze # we close the connection once we're ready to read the response to # save bandwidth def read_response close RESPONSE end end
Version data entries
8 entries across 8 versions & 1 rubygems