| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
ClientRequestContext.request()
Returns the
HttpRequest associated with this context, or null if there's no
HttpRequest associated with this context yet. |
| Modifier and Type | Method and Description |
|---|---|
static ClientRequestContextBuilder |
ClientRequestContext.builder(HttpRequest request)
Returns a new
ClientRequestContextBuilder created from the specified HttpRequest. |
HttpResponse |
HttpClient.execute(ClientRequestContext ctx,
HttpRequest req) |
HttpResponse |
DecoratingHttpClientFunction.execute(HttpClient delegate,
ClientRequestContext ctx,
HttpRequest req)
|
HttpResponse |
WebClient.execute(HttpRequest req)
Sends the specified HTTP request.
|
default ClientRequestContext |
ClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq)
Creates a new
ClientRequestContext whose properties and Attributes are copied from this
ClientRequestContext, except having a different Request and its own RequestLog. |
ClientRequestContext |
DefaultClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContextWrapper.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint)
Creates a new
ClientRequestContext whose properties and Attributes are copied from this
ClientRequestContext, except having different Request, Endpoint and its own
RequestLog. |
static ClientRequestContextBuilder |
ClientRequestContextBuilder.of(HttpRequest request)
Deprecated.
|
static ClientRequestContext |
ClientRequestContext.of(HttpRequest request)
Returns a new
ClientRequestContext created from the specified HttpRequest. |
| Constructor and Description |
|---|
DefaultClientRequestContext(ClientFactory factory,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq)
Creates a new instance.
|
DefaultClientRequestContext(io.netty.channel.EventLoop eventLoop,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
CircuitBreakerHttpClient.doExecute(ClientRequestContext ctx,
HttpRequest req,
CircuitBreaker circuitBreaker) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
HttpDecodingClient.execute(ClientRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected ConcurrencyLimitingClient.Deferred<HttpResponse> |
ConcurrencyLimitingHttpClient.defer(ClientRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
RetryingHttpClient.doExecute(ClientRequestContext ctx,
HttpRequest req) |
protected static ClientRequestContext |
RetryingClient.newDerivedContext(ClientRequestContext ctx,
HttpRequest req,
RpcRequest rpcReq,
boolean initialAttempt)
Creates a new derived
ClientRequestContext, replacing the requests. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpRequestWriter
An
HttpRequest that can have HttpObjects written to it. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHttpRequest
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequestDuplicator.duplicateStream() |
HttpRequest |
HttpRequestDuplicator.duplicateStream(boolean lastStream) |
HttpRequest |
HttpRequestDuplicator.duplicateStream(RequestHeaders newHeaders)
Creates a new
HttpRequest instance that publishes data from the publisher you create
this factory with. |
HttpRequest |
HttpRequestDuplicator.duplicateStream(RequestHeaders newHeaders,
boolean lastStream)
Creates a new
HttpRequest instance that publishes data from the publisher you create
this factory with. |
static HttpRequest |
HttpRequest.of(AggregatedHttpRequest request)
Deprecated.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path)
Creates a new HTTP request with empty content and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
byte[] content)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
CharSequence content)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String content)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpMethod method,
String path,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP request and closes the stream.
|
static HttpRequest |
HttpRequest.of(HttpRequest request,
RequestHeaders newHeaders)
Deprecated.
|
static HttpRequest |
HttpRequest.of(RequestHeaders headers)
Creates a new
HttpRequest with empty content and closes the stream. |
static HttpRequest |
HttpRequest.of(RequestHeaders headers,
HttpData... contents)
Creates a new
HttpRequest that publishes the given HttpObjects and closes the stream. |
static HttpRequest |
HttpRequest.of(RequestHeaders headers,
HttpData content)
Creates a new
HttpRequest and closes the stream. |
static HttpRequest |
HttpRequest.of(RequestHeaders headers,
HttpData content,
HttpHeaders trailers)
Creates a new
HttpRequest and closes the stream. |
static HttpRequest |
HttpRequest.of(RequestHeaders headers,
org.reactivestreams.Publisher<? extends HttpObject> publisher)
Creates a new instance from an existing
RequestHeaders and Publisher. |
HttpRequest |
RequestContextWrapper.request() |
HttpRequest |
RequestContext.request()
Returns the
HttpRequest associated with this context, or null if there's no
HttpRequest associated with this context yet. |
HttpRequest |
NonWrappingRequestContext.request() |
protected HttpRequest |
AbstractRequestContextBuilder.request()
Returns the
HttpRequest of the context. |
default HttpRequest |
AggregatedHttpRequest.toHttpRequest()
Converts this request into a new complete
HttpRequest. |
default HttpRequest |
HttpRequest.withHeaders(RequestHeaders newHeaders)
Returns a new
HttpRequest derived from this HttpRequest by replacing its
RequestHeaders with the specified newHeaders. |
default HttpRequest |
HttpRequest.withHeaders(RequestHeadersBuilder newHeadersBuilder)
Returns a new
HttpRequest derived from this HttpRequest by replacing its
RequestHeaders with what's built from the specified newHeadersBuilder. |
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq)
Creates a new
RequestContext whose properties and Attributes are copied from this
RequestContext, except having a different pair of HttpRequest and RpcRequest
and its own RequestLog. |
static HttpRequest |
HttpRequest.of(HttpRequest request,
RequestHeaders newHeaders)
Deprecated.
|
protected void |
NonWrappingRequestContext.unsafeUpdateRequest(HttpRequest req)
Replaces the
HttpRequest associated with this context with the specified one
without any validation. |
void |
RequestContextWrapper.updateRequest(HttpRequest req) |
void |
RequestContext.updateRequest(HttpRequest req)
Replaces the
HttpRequest associated with this context with the specified one. |
void |
NonWrappingRequestContext.updateRequest(HttpRequest req) |
| Constructor and Description |
|---|
AbstractRequestContextBuilder(boolean server,
HttpRequest req)
Creates a new builder with the specified
HttpRequest. |
HttpRequestDuplicator(HttpRequest req)
Creates a new instance wrapping an
HttpRequest and publishing to multiple subscribers. |
HttpRequestDuplicator(HttpRequest req,
long maxSignalLength)
Creates a new instance wrapping an
HttpRequest and publishing to multiple subscribers. |
HttpRequestDuplicator(HttpRequest req,
long maxSignalLength,
io.netty.util.concurrent.EventExecutor executor)
Creates a new instance wrapping an
HttpRequest and publishing to multiple subscribers. |
NonWrappingRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
HttpRequest req,
RpcRequest rpcReq)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ArmeriaHttpUtil.isCorsPreflightRequest(HttpRequest request)
Returns
true if the specified request is a CORS preflight request. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
AnnotatedHttpService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
ServiceRequestContextWrapper.request() |
HttpRequest |
ServiceRequestContext.request()
Returns the
HttpRequest associated with this context. |
| Modifier and Type | Method and Description |
|---|---|
static ServiceRequestContextBuilder |
ServiceRequestContext.builder(HttpRequest request)
Returns a new
ServiceRequestContextBuilder created from the specified HttpRequest. |
protected HttpResponse |
AbstractHttpService.doDelete(ServiceRequestContext ctx,
HttpRequest req)
Handles a
DELETE request. |
protected void |
AbstractHttpService.doDelete(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doGet(ServiceRequestContext ctx,
HttpRequest req)
Handles a
GET request. |
protected void |
AbstractHttpService.doGet(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doHead(ServiceRequestContext ctx,
HttpRequest req)
Handles a
HEAD request. |
protected void |
AbstractHttpService.doHead(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doOptions(ServiceRequestContext ctx,
HttpRequest req)
Handles an
OPTIONS request. |
protected void |
AbstractHttpService.doOptions(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doPatch(ServiceRequestContext ctx,
HttpRequest req)
Handles a
PATCH request. |
protected void |
AbstractHttpService.doPatch(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doPost(ServiceRequestContext ctx,
HttpRequest req)
Handles a
POST request. |
protected void |
AbstractHttpService.doPost(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doPut(ServiceRequestContext ctx,
HttpRequest req)
Handles a
PUT request. |
protected void |
AbstractHttpService.doPut(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
protected HttpResponse |
AbstractHttpService.doTrace(ServiceRequestContext ctx,
HttpRequest req)
Handles a
TRACE request. |
protected void |
AbstractHttpService.doTrace(ServiceRequestContext ctx,
HttpRequest req,
HttpResponseWriter res)
Deprecated.
|
ServiceRequestContext |
ServiceRequestContextWrapper.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
ServiceRequestContext |
ServiceRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
ServiceRequestContext |
DefaultServiceRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq) |
static ServiceRequestContextBuilder |
ServiceRequestContextBuilder.of(HttpRequest request)
Deprecated.
|
static ServiceRequestContext |
ServiceRequestContext.of(HttpRequest request)
Returns a new
ServiceRequestContext created from the specified HttpRequest. |
HttpResponse |
DecoratingHttpServiceFunction.serve(HttpService delegate,
ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
HttpRequest. |
HttpResponse |
RedirectService.serve(ServiceRequestContext ctx,
HttpRequest req)
NB: For now we redirect all methods.
|
HttpResponse |
HttpService.serve(ServiceRequestContext ctx,
HttpRequest req) |
HttpResponse |
AbstractHttpService.serve(ServiceRequestContext ctx,
HttpRequest req)
Serves the specified
HttpRequest by delegating it to the matching 'doMETHOD()' method. |
| Constructor and Description |
|---|
DefaultServiceRequestContext(ServiceConfig cfg,
io.netty.channel.Channel ch,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
RoutingContext routingContext,
RoutingResult routingResult,
HttpRequest request,
SSLSession sslSession,
ProxiedAddresses proxiedAddresses,
InetAddress clientAddress)
Creates a new instance.
|
DefaultServiceRequestContext(ServiceConfig cfg,
io.netty.channel.Channel ch,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
RoutingContext routingContext,
RoutingResult routingResult,
HttpRequest request,
SSLSession sslSession,
ProxiedAddresses proxiedAddresses,
InetAddress clientAddress,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
ExceptionHandlerFunction.handleException(ServiceRequestContext ctx,
HttpRequest req,
Throwable cause)
Returns an
HttpResponse which would be sent back to the client who sent the req. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
HttpAuthService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.add(Authorizer<HttpRequest> authorizer)
Adds an
Authorizer. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.add(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Adds multiple
Authorizers. |
static Function<? super HttpService,HttpAuthService> |
HttpAuthService.newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Creates a new HTTP authorization
HttpService decorator using the specified
Authorizers. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.onFailure(AuthFailureHandler<HttpRequest,HttpResponse> failureHandler)
Sets the
AuthFailureHandler which handles the requests with failed authorization. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.onSuccess(AuthSuccessHandler<HttpRequest,HttpResponse> successHandler)
Sets the
AuthSuccessHandler which handles successfully authorized requests. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
CorsService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
DocServiceBuilder |
DocServiceBuilder.injectedScriptSupplier(BiFunction<ServiceRequestContext,HttpRequest,String> supplier)
Adds a supplier for Javascript scripts to inject into the
<head /> of the debug page HTML. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
HttpEncodingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
HttpFileService.doGet(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
HttpHealthCheckService.doGet(ServiceRequestContext ctx,
HttpRequest req)
Deprecated.
|
protected HttpResponse |
HttpHealthCheckService.doHead(ServiceRequestContext ctx,
HttpRequest req)
Deprecated.
|
protected HttpResponse |
ManagedHttpHealthCheckService.doPut(ServiceRequestContext ctx,
HttpRequest req)
Deprecated.
|
CompletionStage<HealthCheckUpdateResult> |
HealthCheckUpdateHandler.handle(ServiceRequestContext ctx,
HttpRequest req)
Determines if the healthiness of the
Server needs to be changed or not from the given
HttpRequest. |
protected CompletionStage<Optional<Boolean>> |
ManagedHttpHealthCheckService.mode(ServiceRequestContext ctx,
HttpRequest req)
Deprecated.
Judge the turning mode.
|
HttpResponse |
HealthCheckService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
LoggingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
StructuredLoggingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
PrometheusExpositionService.doGet(ServiceRequestContext ctx,
HttpRequest req) |
protected HttpResponse |
PrometheusExpositionService.doPost(ServiceRequestContext ctx,
HttpRequest req) |
HttpResponse |
MetricCollectingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
ThrottlingService.onFailure(ServiceRequestContext ctx,
HttpRequest req,
Throwable cause)
Invoked when
req is throttled. |
| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpService,ThrottlingService> |
ThrottlingService.newDecorator(ThrottlingStrategy<HttpRequest> strategy)
Creates a new decorator using the specified
ThrottlingStrategy instance. |
| Constructor and Description |
|---|
ThrottlingService(HttpService delegate,
ThrottlingStrategy<HttpRequest> strategy)
Creates a new instance that decorates the specified
HttpService. |
Copyright © 2020 LeanCloud. All rights reserved.