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
Methods inherited from interface org.eclipse.jetty.io.Content.Source
demand, fail, fail, getLength, read, rewind
-
Method Details
-
getContentType
- Returns:
- the value of the
Content-Typeheader for the request content, such astext/html;charset=utf-8orapplication/json, ornullto use the value fromHttpClient.getDefaultRequestContentType()
-