Package io.vertx.httpproxy
Interface BodyTransformer
-
@Unstable public interface BodyTransformer
A synchronous function that transforms an HTTP body entity.
-
-
Method Detail
-
consumes
default boolean consumes(MediaType mediaType)
- Returns:
- whether this transformer consumes the
mediaType
,mediaType
can benull
when the HTTP head does not present a body, the default implementation returnstrue
-
produces
default MediaType produces(MediaType mediaType)
- Returns:
- the media type produced by this transformer, the default implementation returns the same media type
-
-