open static fun <T : Resource> fromResource(resource: T): BodyInserter<T, ReactiveHttpOutputMessage>
Return a BodyInserter that writes the given Resource.
If the resource can be resolved to a file, it will be copied using zero-copy.
resource - the resource to write to the output message
Return
a BodyInserter that writes a Publisher