| 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(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
CircuitBreakerClient.doExecute(ClientRequestContext ctx,
HttpRequest req,
CircuitBreaker circuitBreaker) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
DecodingClient.execute(ClientRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
ContentPreviewingClient.execute(ClientRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
RetryingClient.doExecute(ClientRequestContext ctx,
HttpRequest req) |
protected static ClientRequestContext |
AbstractRetryingClient.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.
|
class |
FilteredHttpRequest
An
HttpRequest that filters objects as they are published. |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequestDuplicator.duplicate()
Returns a new
HttpRequest that publishes the same HttpDatas and
trailers as the HttpRequest that this duplicator is created from. |
HttpRequest |
HttpRequestDuplicator.duplicate(RequestHeaders newHeaders)
Returns a new
HttpRequest with the specified RequestHeaders that publishes the same
HttpDatas and trailers as the HttpRequest that
this duplicator is created from. |
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 RequestContext.attrs() 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. |
FilteredHttpRequest(HttpRequest delegate)
Creates a new
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber. |
FilteredHttpRequest(HttpRequest delegate,
boolean withPooledObjects)
Creates a new
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber. |
NonWrappingRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
HttpRequest req,
RpcRequest rpcReq,
RequestContext rootAttributeMap)
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 |
|---|---|
static HttpRequest |
ContentPreviewingUtil.setUpRequestContentPreviewer(RequestContext ctx,
HttpRequest req,
ContentPreviewer requestContentPreviewer)
Sets up the request
ContentPreviewer to set
RequestLogBuilder.requestContentPreview(String) when the preview is available. |
| Modifier and Type | Method and Description |
|---|---|
static HttpRequest |
ContentPreviewingUtil.setUpRequestContentPreviewer(RequestContext ctx,
HttpRequest req,
ContentPreviewer requestContentPreviewer)
Sets up the request
ContentPreviewer to set
RequestLogBuilder.requestContentPreview(String) when the preview is available. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
AnnotatedService.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 req,
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 |
AuthService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.add(Authorizer<HttpRequest> authorizer)
Deprecated.
|
AuthServiceBuilder |
AuthServiceBuilder.add(Authorizer<HttpRequest> authorizer)
Adds an
Authorizer. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.add(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Deprecated.
|
AuthServiceBuilder |
AuthServiceBuilder.add(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Adds multiple
Authorizers. |
static Function<? super HttpService,AuthService> |
HttpAuthService.newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Deprecated.
|
static Function<? super HttpService,AuthService> |
AuthService.newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Creates a new HTTP authorization
HttpService decorator using the specified
Authorizers. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.onFailure(AuthFailureHandler<HttpRequest,HttpResponse> failureHandler)
Deprecated.
|
AuthServiceBuilder |
AuthServiceBuilder.onFailure(AuthFailureHandler<HttpRequest,HttpResponse> failureHandler)
Sets the
AuthFailureHandler which handles the requests with failed authorization. |
HttpAuthServiceBuilder |
HttpAuthServiceBuilder.onSuccess(AuthSuccessHandler<HttpRequest,HttpResponse> successHandler)
Deprecated.
|
AuthServiceBuilder |
AuthServiceBuilder.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 |
EncodingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
FileService.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) |
HttpResponse |
ContentPreviewingService.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. |
Copyright © 2020 LeanCloud. All rights reserved.