Package io.servicetalk.http.netty
Class H1SpecExceptions.Builder
- java.lang.Object
-
- io.servicetalk.http.netty.H1SpecExceptions.Builder
-
- Enclosing class:
- H1SpecExceptions
public static final class H1SpecExceptions.Builder extends java.lang.ObjectBuilder forH1SpecExceptions.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description H1SpecExceptions.BuilderallowLFWithoutCR(boolean allow)H1SpecExceptions.BuilderallowPrematureClosureBeforePayloadBody()Deprecated.H1SpecExceptions.BuilderallowPrematureClosureBeforePayloadBody(boolean allow)Allows interpreting connection closures as the end of HTTP/1.1 messages if the receiver did not receive any part of the payload body before the connection closure.H1SpecExceptionsbuild()BuildsH1SpecExceptions.
-
-
-
Method Detail
-
allowPrematureClosureBeforePayloadBody
@Deprecated public H1SpecExceptions.Builder allowPrematureClosureBeforePayloadBody()
Deprecated.Allows interpreting connection closures as the end of HTTP/1.1 messages if the receiver did not receive any part of the payload body before the connection closure.- Returns:
this
-
allowPrematureClosureBeforePayloadBody
public H1SpecExceptions.Builder allowPrematureClosureBeforePayloadBody(boolean allow)
Allows interpreting connection closures as the end of HTTP/1.1 messages if the receiver did not receive any part of the payload body before the connection closure.- Parameters:
allow-trueif the receiver should interpret connection closures as the end of HTTP/1.1 messages if it did not receive any part of the payload body before the connection closure.- Returns:
this
-
allowLFWithoutCR
public H1SpecExceptions.Builder allowLFWithoutCR(boolean allow)
AllowLFwithout a proceedingCRas described in HTTP/1.x Message Parsing Robustness:Although the line terminator for the start-line and header fields is the sequence CRLF, a recipient MAY recognize a single LF as a line terminator and ignore any preceding CR.
- Parameters:
allow-trueto allowLFwithout a proceedingCR.- Returns:
this
-
build
public H1SpecExceptions build()
BuildsH1SpecExceptions.- Returns:
- a new
H1SpecExceptions
-
-