public class DiscordWebResponse extends Object
Mono of ClientResponse after a network exchange is done.| Constructor and Description |
|---|
DiscordWebResponse(Mono<ClientResponse> responseMono,
ReactorResources reactorResources) |
| Modifier and Type | Method and Description |
|---|---|
<T> Mono<T> |
bodyToMono(Class<T> responseClass)
Read the response body and extract it to a single object according to the
responseType given. |
Mono<ClientResponse> |
mono()
Return the underlying
Mono of ClientResponse. |
Mono<Void> |
skipBody()
Consume and release the response body then return and empty
Mono. |
public DiscordWebResponse(Mono<ClientResponse> responseMono, ReactorResources reactorResources)
public <T> Mono<T> bodyToMono(Class<T> responseClass)
responseType given. If the
response has an HTTP error (status codes 4xx and 5xx) the produced object will be a ClientException.public Mono<Void> skipBody()
Mono.Mono indicating response body consumption and releasepublic Mono<ClientResponse> mono()
Mono of ClientResponse.Mono this response wrapper accesses