java.lang.Object
io.helidon.webserver.http.DirectTransportRequest
- All Implemented Interfaces:
io.helidon.http.DirectHandler.TransportRequest
public class DirectTransportRequest
extends Object
implements io.helidon.http.DirectHandler.TransportRequest
Simple request to use with
RequestException.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.helidon.http.DirectHandler.TransportRequestcreate(io.helidon.http.HttpPrologue prologue, io.helidon.http.Headers headers) Configure a simple request from known prologue and headers.static io.helidon.http.DirectHandler.TransportRequestCreate a new request from as much known information as possible.io.helidon.http.ServerRequestHeadersheaders()method()path()
-
Method Details
-
create
public static io.helidon.http.DirectHandler.TransportRequest create(String protocolAndVersion, String method, String path) Create a new request from as much known information as possible.- Parameters:
protocolAndVersion- protocol with versionmethod- methodpath- path- Returns:
- a new simple request
-
create
public static io.helidon.http.DirectHandler.TransportRequest create(io.helidon.http.HttpPrologue prologue, io.helidon.http.Headers headers) Configure a simple request from known prologue and headers.- Parameters:
prologue- parsed prologueheaders- parsed headers- Returns:
- a new simple request
-
protocolVersion
- Specified by:
protocolVersionin interfaceio.helidon.http.DirectHandler.TransportRequest
-
method
- Specified by:
methodin interfaceio.helidon.http.DirectHandler.TransportRequest
-
path
- Specified by:
pathin interfaceio.helidon.http.DirectHandler.TransportRequest
-
headers
public io.helidon.http.ServerRequestHeaders headers()- Specified by:
headersin interfaceio.helidon.http.DirectHandler.TransportRequest
-