Interface Request.Content

All Superinterfaces:
org.eclipse.jetty.io.Content.Source
All Known Implementing Classes:
AsyncRequestContent, ByteBufferRequestContent, BytesRequestContent, 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.

  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     

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

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

    • getContentType

      default String getContentType()
      Returns:
      the content type string such as "application/octet-stream" or "application/json;charset=UTF8", or null if the Content-Type header must not be set