Skip to content

Commit 4edbd8c

Browse files
Update SPEC.rdoc
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
1 parent 83e63f4 commit 4edbd8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPEC.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ If the Body responds to +to_ary+, it must return an +Array+ whose contents are i
247247

248248
==== Streaming Body
249249

250-
The Streaming Body must respond to +call+. It must only be consumed once (calling this method consumes the body). It must not be called after being closed. It takes a +stream+ argument.
250+
The Streaming Body must respond to +call+, which must not be called more than once, and must not be called after being closed. The +call+ method must accept a +stream+ argument.
251251

252252
The +stream+ argument must respond to: +read+, +write+, <tt><<</tt>, +flush+, +close+, +close_read+, +close_write+, and +closed?+. The semantics of these +IO+ methods must be a best effort match to those of a normal Ruby +IO+ or +Socket+ object, using standard arguments and raising standard exceptions. Servers may simply pass on real +IO+ objects to the Streaming Body. In some cases (e.g. when using <tt>transfer-encoding</tt> or <tt>HTTP/2+</tt>), the server may need to provide a wrapper that implements the required methods, in order to provide the correct semantics.
253253

0 commit comments

Comments
 (0)