Uses of Class
cloud.opencode.base.web.http.HttpHeaders
Packages that use HttpHeaders
Package
Description
-
Uses of HttpHeaders in cloud.opencode.base.web.cors
Methods in cloud.opencode.base.web.cors with parameters of type HttpHeadersModifier and TypeMethodDescriptionvoidCorsConfig.applyTo(HttpHeaders headers, String requestOrigin) Applies CORS response headers to the given HttpHeaders for the specified request origin. -
Uses of HttpHeaders in cloud.opencode.base.web.http
Methods in cloud.opencode.base.web.http that return HttpHeadersModifier and TypeMethodDescriptionSets Accept header.Adds a header value.Sets Authorization header with Basic auth.HttpHeaders.bearerAuth(String token) Sets Authorization header with Bearer token.HttpHeaders.clear()Clears all headers.HttpHeaders.contentType(ContentType contentType) Sets Content-Type header.HttpHeaders.contentType(String contentType) Sets Content-Type header.static HttpHeadersHttpHeaders.copyOf(HttpHeaders source) Creates a copy of the headers.static HttpHeadersHttpHeaders.from(HttpHeaders jdkHeaders) Creates headers from JDK HttpHeaders.static HttpHeadersHttpHeaders.of()Creates empty headers.static HttpHeadersCreates headers from a map.Removes a header.Sets a header value (replaces existing).Sets multiple values for a header.Sets User-Agent header.Methods in cloud.opencode.base.web.http with parameters of type HttpHeadersModifier and TypeMethodDescriptionstatic HttpHeadersHttpHeaders.copyOf(HttpHeaders source) Creates a copy of the headers. -
Uses of HttpHeaders in cloud.opencode.base.web.ratelimit
Methods in cloud.opencode.base.web.ratelimit with parameters of type HttpHeadersModifier and TypeMethodDescriptionvoidRateLimitInfo.applyTo(HttpHeaders headers) Applies rate limit headers to the given HttpHeaders.static RateLimitInfoRateLimitInfo.fromHeaders(HttpHeaders headers) Parses rate limit information from HTTP response headers. -
Uses of HttpHeaders in cloud.opencode.base.web.security
Methods in cloud.opencode.base.web.security with parameters of type HttpHeadersModifier and TypeMethodDescriptionvoidSecurityHeaders.applyTo(HttpHeaders httpHeaders) Applies all security headers to the given HttpHeaders. -
Uses of HttpHeaders in cloud.opencode.base.web.util
Methods in cloud.opencode.base.web.util with parameters of type HttpHeadersModifier and TypeMethodDescriptionstatic StringClientIp.resolve(HttpHeaders headers) Resolves client IP from headers without trusted proxy filtering.static StringClientIp.resolve(HttpHeaders headers, Set<String> trustedProxies) Resolves client IP from headers with trusted proxy filtering.