Class HttpResponse
java.lang.Object
org.netpreserve.jwarc.Message
org.netpreserve.jwarc.HttpMessage
org.netpreserve.jwarc.HttpResponse
-
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 TypeMethodDescriptionstatic HttpResponseparse(ReadableByteChannel channel) Parses a HTTP response while leniently allowing common deviations from the standard.static HttpResponseparseStrictly(ReadableByteChannel channel) Parses a HTTP response while strictly rejecting deviations from the standard.static HttpResponseparseWithoutBody(ReadableByteChannel channel, WritableByteChannel copyTo) reason()The resposne status reason phrase.intstatus()The 3 digit response status code.Methods inherited from class org.netpreserve.jwarc.HttpMessage
bodyDecodedMethods inherited from class org.netpreserve.jwarc.Message
body, contentType, headers, serializeHeader, version
-
Method Details
-
parse
Parses a HTTP response while leniently allowing common deviations from the standard.- Throws:
IOException
-
parseStrictly
Parses a HTTP response while strictly rejecting deviations from the standard.- Throws:
IOException
-
parseWithoutBody
public static HttpResponse parseWithoutBody(ReadableByteChannel channel, WritableByteChannel copyTo) throws IOException - Throws:
IOException
-
status
public int status()The 3 digit response status code. -
reason
The resposne status reason phrase.
-