Class SSEParserConfig.Builder
java.lang.Object
org.a2aproject.sdk.client.http.SSEParserConfig.Builder
- Enclosing class:
SSEParserConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()maxBufferChars(int maxBufferChars) Sets the maximum total characters across alldata:values in a single event.maxBufferLines(int maxBufferLines) Sets the maximum number ofdata:lines allowed in a single event block.maxLineLength(int maxLineLength) Sets the maximum number of bytes allowed in a single raw SSE line.
-
Method Details
-
maxLineLength
Sets the maximum number of bytes allowed in a single raw SSE line. Set to0to disable the per-line check.Security note: disabling this check removes the first line of defence against memory exhaustion from oversized SSE lines. Ensure
maxBufferCharsis set to an acceptable upper bound when disabling. -
maxBufferLines
Sets the maximum number ofdata:lines allowed in a single event block. -
maxBufferChars
Sets the maximum total characters across alldata:values in a single event. -
build
-