https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request
()
| 666 | |
| 667 | // https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request |
| 668 | func (i *StreamingInterception) pingPayload() []byte { |
| 669 | return i.encodeForStream([]byte(`{"type": "ping"}`), "ping") |
| 670 | } |
| 671 | |
| 672 | func (*StreamingInterception) encodeForStream(payload []byte, typ string) []byte { |
| 673 | // bytes.Buffer writes to in-memory storage and never return errors. |
no test coverage detected