diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 18:18:33 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 18:18:33 +0900 |
commit | 2b23faa53b254bb20b5f3604f8bd8a42dab4f8d0 (patch) | |
tree | 49296e60a8222897b85562078da9c2d5d8765bc8 /lib | |
parent | 939a1c014add6e938b31c19dd9a74332e0691bde (diff) | |
download | plum-2b23faa53b254bb20b5f3604f8bd8a42dab4f8d0.tar.gz |
stream_utils: remove #respond
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plum/stream_utils.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/plum/stream_utils.rb b/lib/plum/stream_utils.rb index a8d959f..e344528 100644 --- a/lib/plum/stream_utils.rb +++ b/lib/plum/stream_utils.rb @@ -3,18 +3,6 @@ using Plum::BinaryString module Plum module StreamUtils - # Responds to a HTTP request. - # @param headers [Enumerable<String, String>] The response headers. - # @param body [String, IO] The response body. - def respond(headers, body = nil, end_stream: true) # TODO: priority, padding - if body - send_headers(headers, end_stream: false) - send_data(body, end_stream: end_stream) - else - send_headers(headers, end_stream: end_stream) - end - end - # Reserves a stream to server push. Sends PUSH_PROMISE and create new stream. # @param headers [Enumerable<String, String>] The *request* headers. It must contain all of them: ':authority', ':method', ':scheme' and ':path'. # @return [Stream] The stream to send push response. |