| 程序包 | 说明 |
|---|---|
| esa.httpserver | |
| esa.httpserver.core | |
| esa.httpserver.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpServer |
HttpServer.handle(Consumer<RequestHandle> h)
Sets the handler for handing requests received.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RequestHandle |
RequestHandle.aggregate(boolean aggregate)
Request.aggregated() could be used after request is ended, which means you can get a completed request such as
using the Request.aggregated() in handle onEnd(Function). |
RequestHandle |
RequestHandle.multipart(boolean expect)
Request.multipart() could be used after request is ended, which means you can get a completed request that
multipart contents have already been decoded such as using the Request.aggregated() in handle onEnd(Function). |
RequestHandle |
RequestHandle.onData(Consumer<io.netty.buffer.ByteBuf> h)
Sets a handler to handle the coming http body.
|
RequestHandle |
RequestHandle.onEnd(Function<io.netty.util.concurrent.Promise<Void>,io.netty.util.concurrent.Future<Void>> h)
Sets a handler to handle this request when current request has been decoded completely.
|
RequestHandle |
RequestHandle.onError(Consumer<Throwable> h)
Sets a handler to handle unexpected error.
|
RequestHandle |
RequestHandle.onTrailer(Consumer<esa.commons.http.HttpHeaders> h)
Sets a handler to handle the coming tailing headers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpServerImpl |
HttpServerImpl.handle(Consumer<RequestHandle> h) |
Copyright © 2020. All rights reserved.