When the function is invoked, it sends an HTTP request to the specified server and emits the HTTP response, along with all metadata associated with the HTTP connection.
被调用时,该函数向指定的服务器发送一个 HTTP 请求并发出 HTTP 响应以及与 HTTP 连接有关的所有元数据。
Normally, you can pull this information from the HTTP header, but the HTTP header isn't available because the view is built on the server.
通常,您可以从 HTTP 头部中提取此信息,但是 HTTP 头部不可使用,因为视图构建在服务器上。
The server responds with an HTTP code in the HTTP header (200, if correct), which is followed by the requested HTML document.
服务器回复时在HTTP标题中带有HTTP代码(如果没有错误发生的话,这个代码是 200),它后面紧跟着就是被请求的 HTML 文档。
应用推荐