Skip to main content
Version: 24.38.0

HTTPRequest.hasPostData() 方法

🌐 HTTPRequest.hasPostData() method

当请求包含 POST 数据时为真。请注意,当数据过长或无法以解码形式立即获取时,即使此标志为真,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;
}

返回:

boolean