Interface Request.BodyPublisher

Enclosing class:
Request

public static interface Request.BodyPublisher
An API for serializing an HTTP Request.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the length of the HTTP Request.
    Get the serialized bytes for an HTTP Request.
  • Method Details

    • getBytes

      ByteBuffer getBytes()
      Get the serialized bytes for an HTTP Request.
      Returns:
      the serialized request body
    • contentLength

      long contentLength()
      Get the length of the HTTP Request.
      Returns:
      the request length