Package org.microproxy.frames
Class Http3FramePipeline.Builder
java.lang.Object
org.microproxy.frames.Http3FramePipeline.Builder
- Enclosing class:
Http3FramePipeline
Options for
Http3FramePipeline.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the pipeline.clientAddress(InetSocketAddress clientAddress) The client address the interceptor is told; default none.connectionId(long connectionId) The connection id the interceptor is told (FrameContext.connectionId()); default -1.direction(FrameDirection direction) Whose frames these are, as the interceptor is told:FrameDirection.FROM_CLIENTorFrameDirection.TO_SERVERfor a client's (requests),FrameDirection.FROM_SERVERorFrameDirection.TO_CLIENTfor a server's (responses).maxFieldSectionSize(long maxFieldSectionSize) The largest decoded field section accepted (default 64 KiB).maxFramePayloadSize(int maxFramePayloadSize) The largest frame payload read (default 64 KiB); a longer DATA frame is shown in pieces of this size, any other longer frame fails the stream.qpack(long maxTableCapacity, int blockedStreams) The QPACK dynamic table the sender may use: the SETTINGS_QPACK_MAX_TABLE_CAPACITY and SETTINGS_QPACK_BLOCKED_STREAMS its peer advertised.The server (host:port) the interceptor is told; default none.
-
Method Details
-
direction
Whose frames these are, as the interceptor is told:FrameDirection.FROM_CLIENTorFrameDirection.TO_SERVERfor a client's (requests),FrameDirection.FROM_SERVERorFrameDirection.TO_CLIENTfor a server's (responses). DefaultFROM_CLIENT.- Parameters:
direction- the direction- Returns:
- this builder
-
connectionId
The connection id the interceptor is told (FrameContext.connectionId()); default -1.- Parameters:
connectionId- the id- Returns:
- this builder
-
clientAddress
The client address the interceptor is told; default none.- Parameters:
clientAddress- the address, or null- Returns:
- this builder
-
server
The server (host:port) the interceptor is told; default none.- Parameters:
server- the server, or null- Returns:
- this builder
-
qpack
The QPACK dynamic table the sender may use: the SETTINGS_QPACK_MAX_TABLE_CAPACITY and SETTINGS_QPACK_BLOCKED_STREAMS its peer advertised. Default 0 and 0: static-only.- Parameters:
maxTableCapacity- the table capacity, 0 or moreblockedStreams- the most streams that may wait for the encoder stream, 0 or more- Returns:
- this builder
-
maxFramePayloadSize
The largest frame payload read (default 64 KiB); a longer DATA frame is shown in pieces of this size, any other longer frame fails the stream.- Parameters:
maxFramePayloadSize- the limit in bytes, 1 or more- Returns:
- this builder
-
maxFieldSectionSize
The largest decoded field section accepted (default 64 KiB).- Parameters:
maxFieldSectionSize- the limit in bytes, 1 or more- Returns:
- this builder
-
build
Builds the pipeline.- Returns:
- the pipeline
- Throws:
IllegalStateException- if thehttp3-codecmodule is not on the class path
-