Class H1SpecExceptions

java.lang.Object
io.servicetalk.http.netty.H1SpecExceptions

public final class H1SpecExceptions extends Object
Additional exceptions for HTTP/1.1 specification.
  • Method Details

    • allowPrematureClosureBeforePayloadBody

      public boolean allowPrematureClosureBeforePayloadBody()
      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:
      true if 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
    • allowLFWithoutCR

      public boolean allowLFWithoutCR()
      Allow LF without a proceeding CR as 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.
       
      Returns:
      true to allow LF without a proceeding CR.
    • toString

      public String toString()
      Overrides:
      toString in class Object