java.lang.Object
io.helidon.http.Forwarded
A representation of the
HeaderNames.FORWARDED HTTP header.-
Method Summary
Modifier and TypeMethodDescriptionby()bydirective of the forwarded header.Parse forwarded header(s) from the provided headers.static ForwardedCreate forwarded from a value of a single forwarded header, such asby=a.b.c;for=d.e.f;host=host;proto=https.fordirective of the forwarded header.host()hostdirective of the forwarded header.proto()protodirective of the forwarded header.
-
Method Details
-
create
Create forwarded from a value of a single forwarded header, such asby=a.b.c;for=d.e.f;host=host;proto=https.- Parameters:
string- string representation of a single forwarded header- Returns:
- forwarded parsed from the string
- See Also:
-
create
Parse forwarded header(s) from the provided headers.- Parameters:
headers- header to process- Returns:
- list of forwarded headers, will be empty if the header does not exist.
-
by
bydirective of the forwarded header.- Returns:
- by directive
-
forClient
fordirective of the forwarded header.- Returns:
- for directive
-
host
hostdirective of the forwarded header. The host of the original request.- Returns:
- host directive
-
proto
protodirective of the forwarded header. The protocol of the original request (http or https).- Returns:
- proto directive
-