public class HttpRequest extends HttpMessage
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequest.Builder |
HttpMessage.AbstractBuilder<R extends HttpMessage,B extends HttpMessage.AbstractBuilder<R,B>>| Modifier and Type | Method and Description |
|---|---|
String |
method() |
static HttpRequest |
parse(ReadableByteChannel channel)
Parses a HTTP request while leniently allowing common deviations from the standard.
|
static HttpRequest |
parse(ReadableByteChannel channel,
ByteBuffer buffer)
Parses a HTTP request while leniently allowing common deviations from the standard.
|
static HttpRequest |
parseStrictly(ReadableByteChannel channel,
ByteBuffer buffer)
Parses a HTTP request while strictly rejecting deviations from the standard.
|
String |
target() |
body, contentType, headers, serializeHeader, versionpublic String target()
public String method()
public static HttpRequest parse(ReadableByteChannel channel) throws IOException
IOExceptionpublic static HttpRequest parse(ReadableByteChannel channel, ByteBuffer buffer) throws IOException
IOExceptionpublic static HttpRequest parseStrictly(ReadableByteChannel channel, ByteBuffer buffer) throws IOException
IOExceptionCopyright © 2023. All rights reserved.