Interface Request.Content

All Superinterfaces:
org.eclipse.jetty.io.Content.Source
All Known Implementing Classes:
AsyncRequestContent, ByteBufferRequestContent, BytesRequestContent, ContentSourceRequestContent, FormRequestContent, InputStreamRequestContent, MultiPartRequestContent, OutputStreamRequestContent, PathRequestContent, StringRequestContent
Enclosing interface:
Request

public static interface Request.Content extends org.eclipse.jetty.io.Content.Source

A client-side representation of HTTP request content.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source

    org.eclipse.jetty.io.Content.Source.Factory
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     

    Methods inherited from interface org.eclipse.jetty.io.Content.Source

    demand, fail, fail, getLength, read, rewind
  • Method Details

    • getContentType

      default String getContentType()
      Returns:
      the value of the Content-Type header for the request content, such as text/html;charset=utf-8 or application/json, or null to use the value from HttpClient.getDefaultRequestContentType()