Package io.helidon.webserver
Interface BareRequest
-
public interface BareRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Flow.Publisher<DataChunk>
bodyPublisher()
Gets the Flow Publisher that allows a subscription for request body chunks.Map<String,List<String>>
headers()
Gets http request headers.boolean
isSecure()
Gets an indicating whether this request was made using a secure channel, such as HTTPS.String
localAddress()
Gets the Internet Protocol (IP) address of the interface on which the request was received.int
localPort()
Returns the Internet Protocol (IP) port number of the interface on which the request was received.Http.RequestMethod
method()
Gets an HTTP request method.String
remoteAddress()
Gets the Internet Protocol (IP) address of the client or last proxy that sent the request.int
remotePort()
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.long
requestId()
A unique correlation ID that is associated with this request and its associated response.URI
uri()
Gets a Request-URI (or alternatively path) as defined in request line.Http.Version
version()
Gets an HTTP version from the request line such asHTTP/1.1
.WebServer
webServer()
Gets actualWebServer
instance.
-
-
-
Method Detail
-
method
Http.RequestMethod method()
Gets an HTTP request method.- Returns:
- an HTTP method.
-
version
Http.Version version()
Gets an HTTP version from the request line such asHTTP/1.1
.- Returns:
- HTTP version.
-
uri
URI uri()
Gets a Request-URI (or alternatively path) as defined in request line.- Returns:
- a request URI
-
localAddress
String localAddress()
Gets the Internet Protocol (IP) address of the interface on which the request was received.- Returns:
- an address.
-
localPort
int localPort()
Returns the Internet Protocol (IP) port number of the interface on which the request was received.- Returns:
- an integer specifying the port number.
-
remoteAddress
String remoteAddress()
Gets the Internet Protocol (IP) address of the client or last proxy that sent the request.- Returns:
- The address of the client that sent the request.
-
remotePort
int remotePort()
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.- Returns:
- The port number.
-
isSecure
boolean isSecure()
Gets an indicating whether this request was made using a secure channel, such as HTTPS.- Returns:
true
if the request was made using a secure channel.
-
headers
Map<String,List<String>> headers()
Gets http request headers.- Returns:
- representing http headers.
-
bodyPublisher
Flow.Publisher<DataChunk> bodyPublisher()
Gets the Flow Publisher that allows a subscription for request body chunks.- Returns:
- the publisher
-
requestId
long requestId()
A unique correlation ID that is associated with this request and its associated response.- Returns:
- a unique correlation ID associated with this request and its response
-
-