| Modifier and Type | Method and Description |
|---|---|
default HttpResponse |
WebClient.delete(String path)
Sends an HTTP DELETE request.
|
HttpResponse |
WebClient.execute(AggregatedHttpRequest aggregatedReq)
Sends the specified HTTP request.
|
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 HttpResponse |
WebClient.execute(RequestHeaders headers)
Sends an empty HTTP request with the specified headers.
|
default HttpResponse |
WebClient.execute(RequestHeaders headers,
byte[] content)
Sends an HTTP request with the specified headers and content.
|
default HttpResponse |
WebClient.execute(RequestHeaders headers,
HttpData content)
Sends an HTTP request with the specified headers and content.
|
default HttpResponse |
WebClient.execute(RequestHeaders headers,
String content)
Sends an HTTP request with the specified headers and content.
|
default HttpResponse |
WebClient.execute(RequestHeaders headers,
String content,
Charset charset)
Sends an HTTP request with the specified headers and content.
|
default HttpResponse |
WebClient.get(String path)
Sends an HTTP GET request.
|
default HttpResponse |
WebClient.head(String path)
Sends an HTTP HEAD request.
|
default HttpResponse |
WebClient.options(String path)
Sends an HTTP OPTIONS request.
|
default HttpResponse |
WebClient.patch(String path,
byte[] content)
Sends an HTTP PATCH request with the specified content.
|
default HttpResponse |
WebClient.patch(String path,
HttpData content)
Sends an HTTP PATCH request with the specified content.
|
default HttpResponse |
WebClient.patch(String path,
String content)
Sends an HTTP PATCH request with the specified content.
|
default HttpResponse |
WebClient.patch(String path,
String content,
Charset charset)
Sends an HTTP PATCH request with the specified content.
|
default HttpResponse |
WebClient.post(String path,
byte[] content)
Sends an HTTP POST request with the specified content.
|
default HttpResponse |
WebClient.post(String path,
HttpData content)
Sends an HTTP POST request with the specified content.
|
default HttpResponse |
WebClient.post(String path,
String content)
Sends an HTTP POST request with the specified content.
|
default HttpResponse |
WebClient.post(String path,
String content,
Charset charset)
Sends an HTTP POST request with the specified content.
|
default HttpResponse |
WebClient.put(String path,
byte[] content)
Sends an HTTP PUT request with the specified content.
|
default HttpResponse |
WebClient.put(String path,
HttpData content)
Sends an HTTP PUT request with the specified content.
|
default HttpResponse |
WebClient.put(String path,
String content)
Sends an HTTP PUT request with the specified content.
|
default HttpResponse |
WebClient.put(String path,
String content,
Charset charset)
Sends an HTTP PUT request with the specified content.
|
default HttpResponse |
WebClient.trace(String path)
Sends an HTTP TRACE request.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
CircuitBreakerClient.doExecute(ClientRequestContext ctx,
HttpRequest req,
CircuitBreaker circuitBreaker) |
| Modifier and Type | Method and Description |
|---|---|
static CircuitBreakerHttpClientBuilder |
CircuitBreakerHttpClient.builder(CircuitBreakerStrategyWithContent<HttpResponse> strategyWithContent)
Deprecated.
|
static CircuitBreakerClientBuilder |
CircuitBreakerClient.builder(CircuitBreakerStrategyWithContent<HttpResponse> strategyWithContent)
Returns a new
CircuitBreakerClientBuilder with
the specified CircuitBreakerStrategyWithContent. |
| Constructor and Description |
|---|
CircuitBreakerHttpClientBuilder(CircuitBreakerStrategyWithContent<HttpResponse> strategyWithContent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
DecodingClient.execute(ClientRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
ConcurrencyLimitingClient.newDeferredResponse(ClientRequestContext ctx,
CompletionStage<HttpResponse> resFuture) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
ConcurrencyLimitingClient.newDeferredResponse(ClientRequestContext ctx,
CompletionStage<HttpResponse> resFuture) |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
static RetryingHttpClientBuilder |
RetryingHttpClient.builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Deprecated.
|
static RetryingClientBuilder |
RetryingClient.builder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Returns a new
RetryingClientBuilder with the specified RetryStrategyWithContent. |
| Constructor and Description |
|---|
RetryingHttpClientBuilder(RetryStrategyWithContent<HttpResponse> retryStrategyWithContent)
Deprecated.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpResponseWriter
An
HttpResponse that can have HttpObjects written to it. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHttpResponse
Deprecated.
Use
streaming(). |
class |
DeferredHttpResponse
Deprecated.
|
class |
FilteredHttpResponse
An
HttpResponse that filters objects as they are published. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
HttpResponse.delayed(AggregatedHttpResponse response,
Duration delay)
Creates a new HTTP response that delegates to the provided
AggregatedHttpResponse, beginning
publishing after delay has passed from a random ScheduledExecutorService. |
static HttpResponse |
HttpResponse.delayed(AggregatedHttpResponse response,
Duration delay,
ScheduledExecutorService executor)
Creates a new HTTP response that delegates to the provided
AggregatedHttpResponse, beginning
publishing after delay has passed from the provided ScheduledExecutorService. |
static HttpResponse |
HttpResponse.delayed(HttpResponse response,
Duration delay)
Creates a new HTTP response that delegates to the provided
HttpResponse, beginning publishing
after delay has passed from a random ScheduledExecutorService. |
static HttpResponse |
HttpResponse.delayed(HttpResponse response,
Duration delay,
ScheduledExecutorService executor)
Creates a new HTTP response that delegates to the provided
HttpResponse, beginning publishing
after delay has passed from the provided ScheduledExecutorService. |
HttpResponse |
HttpResponseDuplicator.duplicate()
Returns a new
HttpResponse that publishes the same ResponseHeaders, HttpDatas
and trailers as the HttpResponse that this duplicator is created from. |
static HttpResponse |
HttpResponse.from(CompletionStage<? extends HttpResponse> stage)
Creates a new HTTP response that delegates to the
HttpResponse produced by the specified
CompletionStage. |
static HttpResponse |
HttpResponse.from(CompletionStage<? extends HttpResponse> stage,
io.netty.util.concurrent.EventExecutor subscriberExecutor)
Creates a new HTTP response that delegates to the
HttpResponse produced by the specified
CompletionStage. |
static HttpResponse |
HttpResponse.of(AggregatedHttpResponse res)
Deprecated.
|
static HttpResponse |
HttpResponse.of(HttpObject... objs)
Creates a new HTTP response of the specified objects.
|
static HttpResponse |
HttpResponse.of(HttpStatus status)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
byte[] content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
CharSequence content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
String content)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(HttpStatus status,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of the specified
HttpStatus. |
static HttpResponse |
HttpResponse.of(int statusCode)
Creates a new HTTP response of the specified
statusCode. |
static HttpResponse |
HttpResponse.of(MediaType mediaType,
String content)
Creates a new HTTP response of OK status with the content.
|
static HttpResponse |
HttpResponse.of(MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of OK status with the content.
|
static HttpResponse |
HttpResponse.of(org.reactivestreams.Publisher<? extends HttpObject> publisher)
Creates a new HTTP response whose stream is produced from an existing
Publisher. |
static HttpResponse |
HttpResponse.of(ResponseHeaders headers)
Creates a new HTTP response of the specified headers.
|
static HttpResponse |
HttpResponse.of(ResponseHeaders headers,
HttpData content)
Creates a new HTTP response of the specified headers and content.
|
static HttpResponse |
HttpResponse.of(ResponseHeaders headers,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response of the specified objects.
|
static HttpResponse |
HttpResponse.of(String content)
Creates a new HTTP response of OK status with the content as UTF_8.
|
static HttpResponse |
HttpResponse.of(String format,
Object... args)
Creates a new HTTP response of OK status with the content as UTF_8.
|
static HttpResponse |
HttpResponse.ofFailed(Throwable cause)
Deprecated.
Use
ofFailure(Throwable). |
static HttpResponse |
HttpResponse.ofFailure(Throwable cause)
Creates a new failed HTTP response.
|
default HttpResponse |
AggregatedHttpResponse.toHttpResponse()
Converts this response into a new complete
HttpResponse. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
HttpResponse.delayed(HttpResponse response,
Duration delay)
Creates a new HTTP response that delegates to the provided
HttpResponse, beginning publishing
after delay has passed from a random ScheduledExecutorService. |
static HttpResponse |
HttpResponse.delayed(HttpResponse response,
Duration delay,
ScheduledExecutorService executor)
Creates a new HTTP response that delegates to the provided
HttpResponse, beginning publishing
after delay has passed from the provided ScheduledExecutorService. |
void |
DeferredHttpResponse.delegate(HttpResponse delegate)
Deprecated.
Sets the delegate
HttpResponse which will publish the stream actually. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
HttpResponse.from(CompletionStage<? extends HttpResponse> stage)
Creates a new HTTP response that delegates to the
HttpResponse produced by the specified
CompletionStage. |
static HttpResponse |
HttpResponse.from(CompletionStage<? extends HttpResponse> stage,
io.netty.util.concurrent.EventExecutor subscriberExecutor)
Creates a new HTTP response that delegates to the
HttpResponse produced by the specified
CompletionStage. |
| Constructor and Description |
|---|
FilteredHttpResponse(HttpResponse delegate)
Creates a new
FilteredHttpResponse that filters objects published by delegate
before passing to a subscriber. |
FilteredHttpResponse(HttpResponse delegate,
boolean withPooledObjects)
Creates a new
FilteredHttpResponse that filters objects published by delegate
before passing to a subscriber. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
ContentPreviewingUtil.setUpResponseContentPreviewer(ContentPreviewerFactory factory,
RequestContext ctx,
HttpResponse res)
Sets up the response
ContentPreviewer to set
RequestLogBuilder.responseContentPreview(String) when the preview is available. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
ContentPreviewingUtil.setUpResponseContentPreviewer(ContentPreviewerFactory factory,
RequestContext ctx,
HttpResponse res)
Sets up the response
ContentPreviewer to set
RequestLogBuilder.responseContentPreview(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 |
|---|---|
protected HttpResponse |
AbstractHttpService.doDelete(ServiceRequestContext ctx,
HttpRequest req)
Handles a
DELETE request. |
protected HttpResponse |
AbstractHttpService.doGet(ServiceRequestContext ctx,
HttpRequest req)
Handles a
GET request. |
protected HttpResponse |
AbstractHttpService.doHead(ServiceRequestContext ctx,
HttpRequest req)
Handles a
HEAD request. |
protected HttpResponse |
AbstractHttpService.doOptions(ServiceRequestContext ctx,
HttpRequest req)
Handles an
OPTIONS request. |
protected HttpResponse |
AbstractHttpService.doPatch(ServiceRequestContext ctx,
HttpRequest req)
Handles a
PATCH request. |
protected HttpResponse |
AbstractHttpService.doPost(ServiceRequestContext ctx,
HttpRequest req)
Handles a
POST request. |
protected HttpResponse |
AbstractHttpService.doPut(ServiceRequestContext ctx,
HttpRequest req)
Handles a
PUT request. |
protected HttpResponse |
AbstractHttpService.doTrace(ServiceRequestContext ctx,
HttpRequest req)
Handles a
TRACE request. |
HttpResponse |
HttpResponseException.httpResponse()
Returns the
HttpResponse which would be sent back to the client who sent the
corresponding request. |
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. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponseException |
HttpResponseException.of(HttpResponse httpResponse)
Returns a new
HttpResponseException instance with the specified HttpResponse. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
StringResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers) |
HttpResponse |
ServerSentEventResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers) |
HttpResponse |
ResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers)
Returns
HttpResponse instance corresponds to the given result. |
HttpResponse |
NullToNoContentResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers) |
HttpResponse |
JacksonResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers) |
HttpResponse |
ByteArrayResponseConverterFunction.convertResponse(ServiceRequestContext ctx,
ResponseHeaders headers,
Object result,
HttpHeaders trailers) |
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.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 |
|---|---|
HttpResponse |
EncodingService.serve(ServiceRequestContext ctx,
HttpRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
FileService.doGet(ServiceRequestContext ctx,
HttpRequest req) |
protected HttpResponse |
StreamingHttpFile.doRead(ResponseHeaders headers,
long length,
Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc) |
protected abstract HttpResponse |
AbstractHttpFile.doRead(ResponseHeaders headers,
long length,
Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc)
Returns a new
HttpResponse which streams the content of the file which follows the specified
ResponseHeaders. |
HttpResponse |
HttpFile.read(Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc)
Starts to stream this file into the returned
HttpResponse. |
HttpResponse |
AbstractHttpFile.read(Executor fileReadExecutor,
io.netty.buffer.ByteBufAllocator alloc) |
| 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.
|
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 |
|---|---|
static HttpResponse |
ServerSentEvents.fromEvent(ResponseHeaders headers,
ServerSentEvent sse)
Creates a new Server-Sent Events stream of the specified
content. |
static HttpResponse |
ServerSentEvents.fromEvent(ResponseHeaders headers,
ServerSentEvent sse,
HttpHeaders trailers)
Creates a new Server-Sent Events stream of the specified
content. |
static HttpResponse |
ServerSentEvents.fromEvent(ServerSentEvent sse)
Creates a new Server-Sent Events stream of the specified
content. |
static HttpResponse |
JsonTextSequences.fromObject(Object content)
Creates a new JSON Text Sequences of the specified
content. |
static HttpResponse |
JsonTextSequences.fromObject(ResponseHeaders headers,
Object content)
Creates a new JSON Text Sequences of the specified
content. |
static HttpResponse |
JsonTextSequences.fromObject(ResponseHeaders headers,
Object content,
HttpHeaders trailers,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences of the specified
content. |
static HttpResponse |
JsonTextSequences.fromObject(ResponseHeaders headers,
Object content,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences of the specified
content. |
static HttpResponse |
JsonTextSequences.fromPublisher(org.reactivestreams.Publisher<?> contentPublisher)
Creates a new JSON Text Sequences from the specified
Publisher. |
static HttpResponse |
JsonTextSequences.fromPublisher(org.reactivestreams.Publisher<?> contentPublisher,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Publisher. |
static HttpResponse |
ServerSentEvents.fromPublisher(org.reactivestreams.Publisher<? extends ServerSentEvent> contentPublisher)
Creates a new Server-Sent Events stream from the specified
Publisher. |
static <T> HttpResponse |
ServerSentEvents.fromPublisher(org.reactivestreams.Publisher<T> contentPublisher,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Publisher and converter. |
static HttpResponse |
JsonTextSequences.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<?> contentPublisher)
Creates a new JSON Text Sequences from the specified
Publisher. |
static HttpResponse |
JsonTextSequences.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<?> contentPublisher,
HttpHeaders trailers,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Publisher. |
static HttpResponse |
JsonTextSequences.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<?> contentPublisher,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Publisher. |
static HttpResponse |
ServerSentEvents.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<? extends ServerSentEvent> contentPublisher)
Creates a new Server-Sent Events stream from the specified
Publisher. |
static HttpResponse |
ServerSentEvents.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<? extends ServerSentEvent> contentPublisher,
HttpHeaders trailers)
Creates a new Server-Sent Events stream from the specified
Publisher. |
static <T> HttpResponse |
ServerSentEvents.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<T> contentPublisher,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Publisher and converter. |
static <T> HttpResponse |
ServerSentEvents.fromPublisher(ResponseHeaders headers,
org.reactivestreams.Publisher<T> contentPublisher,
HttpHeaders trailers,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Publisher and converter. |
static HttpResponse |
JsonTextSequences.fromStream(ResponseHeaders headers,
Stream<?> contentStream,
Executor executor)
Creates a new JSON Text Sequences from the specified
Stream. |
static HttpResponse |
JsonTextSequences.fromStream(ResponseHeaders headers,
Stream<?> contentStream,
Executor executor,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Stream. |
static HttpResponse |
JsonTextSequences.fromStream(ResponseHeaders headers,
Stream<?> contentStream,
HttpHeaders trailers,
Executor executor,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Stream. |
static HttpResponse |
ServerSentEvents.fromStream(ResponseHeaders headers,
Stream<? extends ServerSentEvent> contentStream,
Executor executor)
Creates a new Server-Sent Events stream from the specified
Stream. |
static HttpResponse |
ServerSentEvents.fromStream(ResponseHeaders headers,
Stream<? extends ServerSentEvent> contentStream,
HttpHeaders trailers,
Executor executor)
Creates a new Server-Sent Events stream from the specified
Stream. |
static <T> HttpResponse |
ServerSentEvents.fromStream(ResponseHeaders headers,
Stream<T> contentStream,
Executor executor,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Stream and converter. |
static <T> HttpResponse |
ServerSentEvents.fromStream(ResponseHeaders headers,
Stream<T> contentStream,
HttpHeaders trailers,
Executor executor,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Stream and converter. |
static HttpResponse |
JsonTextSequences.fromStream(Stream<?> contentStream,
Executor executor)
Creates a new JSON Text Sequences from the specified
Stream. |
static HttpResponse |
JsonTextSequences.fromStream(Stream<?> contentStream,
Executor executor,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JSON Text Sequences from the specified
Stream. |
static HttpResponse |
ServerSentEvents.fromStream(Stream<? extends ServerSentEvent> contentStream,
Executor executor)
Creates a new Server-Sent Events stream from the specified
Stream. |
static <T> HttpResponse |
ServerSentEvents.fromStream(Stream<T> contentStream,
Executor executor,
Function<? super T,? extends ServerSentEvent> converter)
Creates a new Server-Sent Events stream from the specified
Stream and converter. |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
ThrottlingService.onFailure(ServiceRequestContext ctx,
HttpRequest req,
Throwable cause)
Invoked when
req is throttled. |
Copyright © 2020 LeanCloud. All rights reserved.