This is a collection of parsers for HTTP field values, written using ANTLR4.
Currently, this library contains parsers for the following:
- Token (RFC 9110: HTTP Semantics, Section 5.6.2. Tokens)
- Quoted String (RFC 9110: HTTP Semantics, Section 5.6.4. Quoted Strings)
- Forwarded HTTP Header Field (RFC 7239: Forwarded HTTP Extension, Section 4. Forwarded HTTP Header Field)
Apache License, Version 2.0
<dependency>
<groupId>com.authlete.http</groupId>
<artifactId>http-field-parser</artifactId>
<version>${http-field-parser.version}</version>
</dependency>
Check the CHANGES.md file to know the latest version.
https://github.com/authlete/http-field-parser
https://authlete.github.io/http-field-parser
The following is a non-exhaustive list of standard specifications related to this library.
- RFC 5234 Augmented BNF for Syntax Specifications: ABNF
- RFC 7239 Forwarded HTTP Extension
- RFC 9110 HTTP Semantics
If the src/main/antlr4/com/authlete/http/antlr/*.g4
files are modified,
the following command must be executed to regenerate the corresponding
Java source files.
mvn antlr4:antlr4
Authlete Contact Form: https://www.authlete.com/contact/