Package nbbrd.io.http
Interface HttpResponse
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
PersistentResponse
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull InputStream@NonNull InputStreamgetBody()default @NonNull Readerdefault @NonNull Stringlong@NonNull nbbrd.io.net.MediaType@NonNull HttpHeadersReturns the response headers.
-
Field Details
-
NO_CONTENT_LENGTH
static final int NO_CONTENT_LENGTH- See Also:
-
-
Method Details
-
getContentType
- Throws:
IOException
-
getContentLength
- Throws:
IOException
-
getHeaders
Returns the response headers.- Returns:
- a non-null HTTP headers object; empty by default
- Throws:
IOException- if an I/O error occurs
-
getBody
- Throws:
IOException
-
getBodyAsReader
- Throws:
IOException
-
getBodyAsString
- Throws:
IOException
-
asDisconnectingInputStream
- Throws:
IOException
-