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
ExchangeStrategies
Read a response as aString
as a catch-all, unless the given response type isErrorResponse
, in which case it will attempt to store the response into theErrorResponse
body
field.Read a response into JSON and convert to an Object of type<Res>
using Jackson.Write to a request from anObject
to a JSONString
using Jackson.Write to a request from aConsumer<HttpClientRequest.Form>
using reactor-netty'sHttpClient.RequestSender.sendForm(java.util.function.BiConsumer)
.Strategy for reading from aHttpClientResponse
and 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
.