Interface BodyRestRequest

All Superinterfaces:
RestRequest

public interface BodyRestRequest extends 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 Details

    • bodyBytes

      byte[] bodyBytes()
      Returns the raw body bytes. May be empty but never null.
    • bodyAsString

      default String bodyAsString(Charset charset)
    • bodyAsUtf8

      default String bodyAsUtf8()