lib/httpx/plugins/stream.rb in httpx-0.6.6 vs lib/httpx/plugins/stream.rb in httpx-0.6.7
- old
+ new
@@ -1,8 +1,11 @@
# frozen_string_literal: true
module HTTPX
module Plugins
+ #
+ # This plugin adds support for stream response (text/event-stream).
+ #
module Stream
module InstanceMethods
def stream
headers("accept" => "text/event-stream",
"cache-control" => "no-cache")