https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request
()
| 569 | |
| 570 | // https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request |
| 571 | func (i *StreamingInterception) pingPayload() []byte { |
| 572 | return i.encodeForStream([]byte(`{"type": "ping"}`), "ping") |
| 573 | } |
| 574 | |
| 575 | func (*StreamingInterception) encodeForStream(payload []byte, typ string) []byte { |
| 576 | // bytes.Buffer writes to in-memory storage and never return errors. |
no test coverage detected