Req - the type of object in the bodypublic interface WriterStrategy<Req>
<Req> and writing the encoded stream of bytes to an HttpClientRequest.| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite(Class<?> type,
String contentType)
Whether the given object type is supported by this writer.
|
Mono<HttpClient.ResponseReceiver<?>> |
write(HttpClient.RequestSender sender,
Req body)
Write a given object to the output message.
|
boolean canWrite(@Nullable Class<?> type, @Nullable String contentType)
type - the type of object to checkcontentType - the content type for the writetrue if writable, false otherwiseMono<HttpClient.ResponseReceiver<?>> write(HttpClient.RequestSender sender, @Nullable Req body)
sender - the http request senderbody - the object to write