public final class EmptyHttpRequestEntity
extends java.lang.Object
implements org.dmfs.httpessentials.client.HttpRequestEntity
HttpRequestEntity. This entity doesn't have any MediaType. This is typically used for requests that don't send a message body.| Modifier and Type | Field and Description |
|---|---|
static org.dmfs.httpessentials.client.HttpRequestEntity |
INSTANCE |
| Constructor and Description |
|---|
EmptyHttpRequestEntity() |
| Modifier and Type | Method and Description |
|---|---|
org.dmfs.jems.optional.Optional<java.lang.Long> |
contentLength() |
org.dmfs.jems.optional.Optional<org.dmfs.httpessentials.types.MediaType> |
contentType() |
void |
writeContent(java.io.OutputStream out) |
public org.dmfs.jems.optional.Optional<org.dmfs.httpessentials.types.MediaType> contentType()
contentType in interface org.dmfs.httpessentials.client.HttpRequestEntitypublic org.dmfs.jems.optional.Optional<java.lang.Long> contentLength()
contentLength in interface org.dmfs.httpessentials.client.HttpRequestEntitypublic void writeContent(java.io.OutputStream out)
writeContent in interface org.dmfs.httpessentials.client.HttpRequestEntity