Skip to main content
Version: 23.9.0

HTTPRequest.hasPostData() 方法

¥HTTPRequest.hasPostData() method

当请求有 POST 数据时为 true。请注意,当数据太长或不易以解码形式提供时,当此标志为真时,HTTPRequest.postData() 可能仍然未定义。在这种情况下,请使用 HTTPRequest.fetchPostData()

¥True when the request has POST data. Note that HTTPRequest.postData() might still be undefined when this flag is true when the data is too long or not readily available in the decoded form. In that case, use HTTPRequest.fetchPostData().

签名

¥Signature

class HTTPRequest {
abstract hasPostData(): boolean;
}

Returns:

boolean