We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2b4edd commit 7aa538bCopy full SHA for 7aa538b
sse.go
@@ -152,7 +152,8 @@ func (es *EventSource) SetHeader(header, value string) *EventSource {
152
153
// SetBody method sets body value to the [EventSource] instance
154
//
155
-// es.SetBody([]byte(`{"test":"put_data"}`),)
+// Example:
156
+// es.SetBody(bytes.NewReader([]byte(`{"test":"put_data"}`)))
157
func (es *EventSource) SetBody(body io.Reader) *EventSource {
158
es.body = body
159
return es
0 commit comments