public interface ServerSentEventStreamClient
Modifier and Type | Method and Description |
---|---|
static ServerSentEventStreamClient |
of(HttpClient httpClient)
Creates an SSE client.
|
default Promise<TransformablePublisher<Event<?>>> |
request(URI uri) |
Promise<TransformablePublisher<Event<?>>> |
request(URI uri,
Action<? super RequestSpec> action) |
static ServerSentEventStreamClient |
sseStreamClient(ByteBufAllocator byteBufAllocator)
Deprecated.
since 1.4, use
of(HttpClient) . |
static ServerSentEventStreamClient of(HttpClient httpClient)
httpClient
- the underlying HTTP client to use@Deprecated static ServerSentEventStreamClient sseStreamClient(ByteBufAllocator byteBufAllocator)
of(HttpClient)
.Promise<TransformablePublisher<Event<?>>> request(URI uri, Action<? super RequestSpec> action)
default Promise<TransformablePublisher<Event<?>>> request(URI uri)