Skip to content

Commit b3aa957

Browse files
committed
expand doc
1 parent 5de3dc7 commit b3aa957

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ld-eventsource/client.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ class Client
8686
# `open(uri, timeout)` to return a connected `Socket`
8787
# @param method [String] ("GET") the HTTP method to use for requests
8888
# @param payload [String, Hash, Array, #call] (nil) optional request payload. If payload is a Hash or
89-
# an Array, it will be converted to JSON and sent as the request body. If payload responds to #call,
90-
# it will be invoked on each request to generate the payload dynamically.
89+
# an Array, it will be converted to JSON and sent as the request body. A string will be sent as a non-JSON
90+
# request body. If payload responds to #call, it will be invoked on each
91+
# request to generate the payload dynamically.
9192
# @yieldparam [Client] client the new client instance, before opening the connection
9293
#
9394
def initialize(uri,

0 commit comments

Comments
 (0)