| Package | Description |
|---|---|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| Modifier and Type | Method and Description |
|---|---|
static AggregatedHttpFile |
HttpFile.nonExistent()
Returns an
AggregatedHttpFile which represents a non-existent file. |
static AggregatedHttpFile |
HttpFile.of(HttpData data)
Creates a new
AggregatedHttpFile which streams the specified HttpData. |
static AggregatedHttpFile |
HttpFile.of(HttpData data,
long lastModifiedMillis)
Creates a new
AggregatedHttpFile which streams the specified HttpData with the specified
lastModifiedMillis. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<AggregatedHttpFile> |
StreamingHttpFile.aggregate(Executor fileReadExecutor) |
CompletableFuture<AggregatedHttpFile> |
HttpFile.aggregate(Executor fileReadExecutor)
Converts this file into an
AggregatedHttpFile. |
default CompletableFuture<AggregatedHttpFile> |
AggregatedHttpFile.aggregate(Executor fileReadExecutor) |
CompletableFuture<AggregatedHttpFile> |
StreamingHttpFile.aggregateWithPooledObjects(Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc) |
CompletableFuture<AggregatedHttpFile> |
HttpFile.aggregateWithPooledObjects(Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc)
Converts this file into an
AggregatedHttpFile. |
default CompletableFuture<AggregatedHttpFile> |
AggregatedHttpFile.aggregateWithPooledObjects(Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc) |
Copyright © 2020 LeanCloud. All rights reserved.