body

Sets the response body and returns this builder for chaining.

Java-friendly fluent alternative to the body property setter.

Example:

builder.body(myObject).status(200).header("X-Custom", "value");

Return

This builder instance.

Parameters

value

The response body value.


var body: T?(source)