Class HttpRequest
java.lang.Object
org.netpreserve.jwarc.Message
org.netpreserve.jwarc.HttpMessage
org.netpreserve.jwarc.HttpRequest
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.netpreserve.jwarc.HttpMessage
HttpMessage.AbstractBuilder<R extends HttpMessage,B extends HttpMessage.AbstractBuilder<R, B>> -
Method Summary
Modifier and TypeMethodDescriptionmethod()static HttpRequestparse(ReadableByteChannel channel) Parses a HTTP request while leniently allowing common deviations from the standard.static HttpRequestparse(ReadableByteChannel channel, ByteBuffer buffer) Parses a HTTP request while leniently allowing common deviations from the standard.static HttpRequestparseStrictly(ReadableByteChannel channel, ByteBuffer buffer) Parses a HTTP request while strictly rejecting deviations from the standard.target()Methods inherited from class org.netpreserve.jwarc.HttpMessage
bodyDecodedMethods inherited from class org.netpreserve.jwarc.Message
body, contentType, headers, serializeHeader, version
-
Method Details
-
target
-
method
-
parse
Parses a HTTP request while leniently allowing common deviations from the standard.- Throws:
IOException
-
parse
Parses a HTTP request while leniently allowing common deviations from the standard.- Throws:
IOException
-
parseStrictly
public static HttpRequest parseStrictly(ReadableByteChannel channel, ByteBuffer buffer) throws IOException Parses a HTTP request while strictly rejecting deviations from the standard.- Throws:
IOException
-