hunt.http.codec.http.model.HttpCompliance

Undocumented in source.

Members

Classes

HttpCompliance
class HttpCompliance

HTTP compliance modes for Jetty HTTP parsing and handling. A Compliance mode consists of a set of {@link HttpComplianceSection}s which are applied when the mode is enabled. <p> Currently the set of modes is an enum and cannot be dynamically extended, but future major releases may convert this to a class. To modify modes there are four custom modes that can be modified by setting the property <code>org.eclipse.jetty.http.HttpCompliance.CUSTOMn</code> (where 'n' is '0', '1', '2' or '3'), to a comma separated list of sections. The list should start with one of the following strings:<dl> <dt>0</dt><dd>No {@link HttpComplianceSection}s</dd> <dt>*</dt><dd>All {@link HttpComplianceSection}s</dd> <dt>RFC2616</dt><dd>The set of {@link HttpComplianceSection}s application to https://tools.ietf.org/html/rfc2616, but not https://tools.ietf.org/html/rfc7230</dd> <dt>RFC7230</dt><dd>The set of {@link HttpComplianceSection}s application to https://tools.ietf.org/html/rfc7230</dd> </dl> The remainder of the list can contain then names of {@link HttpComplianceSection}s to include them in the mode, or prefixed with a '-' to exclude thm from the mode. Note that Jetty's modes may have some historic minor differences from the strict RFC compliance, for example the <code>RFC2616_LEGACY</code> HttpCompliance is defined as <code>RFC2616,-FIELD_COLON,-METHOD_CASE_SENSITIVE</code>. <p> Note also that the {@link EnumSet} return by {@link HttpCompliance#sections()} is mutable, so that modes may be altered in code and will affect all usages of the mode.

Meta