public final class ContentWithSize extends Object implements com.artipie.asto.Content
| Constructor and Description |
|---|
ContentWithSize(org.reactivestreams.Publisher<ByteBuffer> body,
Iterable<Map.Entry<String,String>> headers)
Content with size from body and headers.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
size() |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber) |
public ContentWithSize(org.reactivestreams.Publisher<ByteBuffer> body, Iterable<Map.Entry<String,String>> headers)
body - Bodyheaders - Headerspublic void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
subscribe in interface org.reactivestreams.Publisher<ByteBuffer>Copyright © 2012–2020 jcabi.com. All rights reserved.