Interface HttpRequestBodySpec

All Superinterfaces:
HttpRequestHeadersSpec

public interface HttpRequestBodySpec extends HttpRequestHeadersSpec
HTTP Request Body Specification builder
  • Method Details

    • body

      HttpRequestHeadersSpec body(InputStream inputStream, OptionalLong contentLength)
      Set Request Body as stream
      Parameters:
      inputStream - Request Body stream is required
      contentLength - Content Length or empty when not known
      Returns:
      HTTP Request Headers Specification builder
    • body

      Set Request Body as provided string encoded as UTF-8. This should be used only when the payload is small. For large amount of data,
      Parameters:
      body - String representation of the payload encoded as UTF-8
      Returns:
      HTTP Request Headers Specification builder
      See Also: