Package discord4j.rest.http
@NonNullApi
package discord4j.rest.http
Classes supporting HTTP processes like encoding and decoding data.
-
ClassDescriptionRead a response without a body.Write a request without a body.Defines the strategies to request and response body conversion.A mutable builder for creating an
ExchangeStrategiesRead a response as aStringas a catch-all, unless the given response type isErrorResponse, in which case it will attempt to store the response into theErrorResponsebodyfield.Write to a request from aStringusing reactor-netty'sHttpClient.RequestSender.send(Publisher).Read a response into JSON and convert to an Object of type<Res>using Jackson.Write to a request from anObjectto a JSONStringusing Jackson.Write to a request from aConsumer<HttpClientRequest.Form>using reactor-netty'sHttpClient.RequestSender.sendForm(java.util.function.BiConsumer).Strategy for reading from aHttpClientResponseand decoding the stream of bytes to an Object of type<Res>.Strategy for encoding an object of type<Req>and writing the encoded stream of bytes to anHttpClientRequest.