Package ru.tinkoff.kora.http.common.body
Class EmptyHttpBody
java.lang.Object
ru.tinkoff.kora.http.common.body.EmptyHttpBody
- All Implemented Interfaces:
Closeable,AutoCloseable,Flow.Publisher<ByteBuffer>,HttpBody,HttpBodyInput,HttpBodyOutput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<byte[]>voidclose()intvoidsubscribe(Flow.Subscriber<? super ByteBuffer> subscriber) voidwrite(OutputStream os)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EmptyHttpBody
public EmptyHttpBody()
-
-
Method Details
-
getFullContentIfAvailable
- Specified by:
getFullContentIfAvailablein interfaceHttpBody
-
contentLength
public int contentLength()- Specified by:
contentLengthin interfaceHttpBody- Specified by:
contentLengthin interfaceHttpBodyOutput
-
contentType
- Specified by:
contentTypein interfaceHttpBody- Specified by:
contentTypein interfaceHttpBodyOutput
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<ByteBuffer>- Specified by:
subscribein interfaceHttpBodyInput- Specified by:
subscribein interfaceHttpBodyOutput
-
asBufferStage
- Specified by:
asBufferStagein interfaceHttpBodyInput
-
asArrayStage
- Specified by:
asArrayStagein interfaceHttpBodyInput
-
write
- Specified by:
writein interfaceHttpBodyOutput- Throws:
IOException
-
asInputStream
- Specified by:
asInputStreamin interfaceHttpBodyInput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-