Module: HTTPX::Plugins::Stream::InstanceMethods

Defined in:
lib/httpx/plugins/stream.rb

Instance Method Summary collapse

Instance Method Details

#streamObject



7
8
9
10
# File 'lib/httpx/plugins/stream.rb', line 7

def stream
  headers("accept" => "text/event-stream",
          "cache-control" => "no-cache")
end