-
Notifications
You must be signed in to change notification settings - Fork 19
ph http
Philip Helger edited this page Apr 8, 2026
·
1 revision
Generic HTTP-related utilities. Does not contain an HTTP client -- see ph-web/ph-httpclient for that.
Highlights:
-
CHttp- HTTP status code constants (aligned with RFC 9110) -
CHttpHeader- HTTP header name constants (including modern security headers) -
EHttpMethod- HTTP method enum (GET, POST, PUT, DELETE, PATCH, etc.) -
EHttpVersion- HTTP version enum (HTTP/1.0 through HTTP/3.0) -
HttpHeaderMap- HTTP header map implementation -
HttpBasicAuth/BasicAuthClientCredentials- HTTP Basic Authentication -
HttpDigestAuth/DigestAuthClientCredentials/DigestAuthServerBuilder- HTTP Digest Authentication (MD5 and SHA-256 per RFC 7616) -
CSPPolicy/CSPSourceList/CSPDirective- Content Security Policy builder -
CacheControlBuilder- Cache-Control header builder -
AcceptCharsetList/AcceptEncodingList/AcceptMimeTypeList- Accept header parsing -
ETLSVersion/TLSConfigurationMode- TLS version management -
QValue- quality value handling for content negotiation
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-http</artifactId>
<version>x.y.z</version>
</dependency>On Twitter: Follow @philiphelger
Donation link: https://paypal.me/PhilipHelger
It is appreciated if you star the GitHub project if you like it.
-
Home
- ph-annotations
- ph-base
- ph-bc
- ph-cache
- ph-cli
- ph-collection
- ph-commons
- ph-config
- ph-config-json
- ph-csv
- ph-dao
- ph-datetime
- ph-diagnostics
- ph-graph
- ph-http
- ph-io
- ph-jaxb
- ph-jaxb-adapter
- ph-json
- ph-matrix
- ph-mime
- ph-scopes
- ph-security
- ph-settings
- ph-statistics
- ph-telemetry
- ph-text
- ph-tree
- ph-typeconvert
- ph-unittest-support
- ph-unittest-support-ext
- ph-url
- ph-wsclient
- ph-xml
- News and noteworthy
- License
- History