Package ru.tinkoff.kora.http.common.body
Interface HttpBodyOutput
- All Superinterfaces:
AutoCloseable,Closeable,Flow.Publisher<ByteBuffer>,HttpBody
- All Known Implementing Classes:
DefaultFullHttpBody,EmptyHttpBody,StreamingHttpBodyOutput
-
Method Summary
Modifier and TypeMethodDescriptionlongstatic HttpBodyOutputoctetStream(int length, Flow.Publisher<? extends ByteBuffer> content) static HttpBodyOutputoctetStream(Flow.Publisher<? extends ByteBuffer> content) static HttpBodyOutputof(String contentType, int length, Flow.Publisher<? extends ByteBuffer> content) static HttpBodyOutputof(String contentType, Flow.Publisher<? extends ByteBuffer> content) voidsubscribe(Flow.Subscriber<? super ByteBuffer> subscriber) default voidwrite(OutputStream os) Methods inherited from interface ru.tinkoff.kora.http.common.body.HttpBody
getFullContentIfAvailable
-
Method Details
-
of
-
of
static HttpBodyOutput of(String contentType, int length, Flow.Publisher<? extends ByteBuffer> content) -
octetStream
-
octetStream
-
contentLength
long contentLength()- Specified by:
contentLengthin interfaceHttpBody
-
contentType
- Specified by:
contentTypein interfaceHttpBody
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<ByteBuffer>
-
write
- Throws:
IOException
-