Class StringRequestContent

All Implemented Interfaces:
Request.Content
Direct Known Subclasses:
FormRequestContent

public class StringRequestContent extends BytesRequestContent

A Request.Content for strings.

It is possible to specify, at the constructor, an encoding used to convert the string into bytes, by default UTF-8.

  • Constructor Details

    • StringRequestContent

      public StringRequestContent(String content)
    • StringRequestContent

      public StringRequestContent(String content, Charset encoding)
    • StringRequestContent

      public StringRequestContent(String contentType, String content)
    • StringRequestContent

      public StringRequestContent(String contentType, String content, Charset encoding)