Interface BodyRestRequest
- All Superinterfaces:
RestRequest
Body-capable
RestRequest. Adapters supply the raw bytes; helper
methods decode as a string. Handlers should pattern-match on this type
instead of casting to a concrete adapter implementation.-
Method Summary
Modifier and TypeMethodDescriptiondefault StringbodyAsString(Charset charset) default Stringbyte[]Returns the raw body bytes.
-
Method Details
-
bodyBytes
byte[] bodyBytes()Returns the raw body bytes. May be empty but nevernull. -
bodyAsString
-
bodyAsUtf8
-