Class HttpGenerator

java.lang.Object
org.eclipse.jetty.http.HttpGenerator

public class HttpGenerator extends Object
HttpGenerator. Builds HTTP Messages.

If the system property "org.eclipse.jetty.http.HttpGenerator.STRICT" is set to true, then the generator will strictly pass on the exact strings received from methods and header fields. Otherwise a fast case insensitive string lookup is used that may alter the case and white space of some methods/headers

  • Field Details

    • LOG

      private static final Logger LOG
    • __STRICT

      public static final boolean __STRICT
    • __colon_space

      private static final byte[] __colon_space
    • CONTINUE_100_INFO

      public static final MetaData.Response CONTINUE_100_INFO
    • PROGRESS_102_INFO

      public static final MetaData.Response PROGRESS_102_INFO
    • RESPONSE_500_INFO

      public static final MetaData.Response RESPONSE_500_INFO
    • CHUNK_SIZE

      public static final int CHUNK_SIZE
      See Also:
    • _state

      private HttpGenerator.State _state
    • _endOfContent

      private HttpTokens.EndOfContent _endOfContent
    • _contentPrepared

      private long _contentPrepared
    • _noContentResponse

      private boolean _noContentResponse
    • _persistent

      private Boolean _persistent
    • _trailers

      private Supplier<HttpFields> _trailers
    • _send

      private final int _send
    • SEND_SERVER

      private static final int SEND_SERVER
      See Also:
    • SEND_XPOWEREDBY

      private static final int SEND_XPOWEREDBY
      See Also:
    • ASSUMED_CONTENT_METHODS

      private static final Trie<Boolean> ASSUMED_CONTENT_METHODS
    • _needCRLF

      private boolean _needCRLF
    • ZERO_CHUNK

      private static final byte[] ZERO_CHUNK
    • LAST_CHUNK

      private static final byte[] LAST_CHUNK
    • CONTENT_LENGTH_0

      private static final byte[] CONTENT_LENGTH_0
    • CONNECTION_CLOSE

      private static final byte[] CONNECTION_CLOSE
    • HTTP_1_1_SPACE

      private static final byte[] HTTP_1_1_SPACE
    • TRANSFER_ENCODING_CHUNKED

      private static final byte[] TRANSFER_ENCODING_CHUNKED
    • SEND

      private static final byte[][] SEND
    • __preprepared

      private static final HttpGenerator.PreparedResponse[] __preprepared
  • Constructor Details

    • HttpGenerator

      public HttpGenerator()
    • HttpGenerator

      public HttpGenerator(boolean sendServerVersion, boolean sendXPoweredBy)
  • Method Details