public class StringBody extends ResourceBody
Constructor and Description |
---|
StringBody(String body,
Charset charset)
构造,根据body内容类型,自动识别Content-Type
|
StringBody(String body,
String contentType,
Charset charset)
构造
|
contentLength, contentType, getResource, getStream, of, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentType, getBytes, writeClose
Copyright © 2025. All rights reserved.