事件:'checkContinue'
【Event: 'checkContinue'】
request<http.IncomingMessage>response<http.ServerResponse>
每次收到带有 HTTP Expect: 100-continue 的请求时都会触发此事件。如果没有监听此事件,服务器将会自动适当地响应 100 Continue。
【Emitted each time a request with an HTTP Expect: 100-continue is received.
If this event is not listened for, the server will automatically respond
with a 100 Continue as appropriate.】
处理此事件涉及在客户端应继续发送请求体时调用 response.writeContinue(),或者在客户端不应继续发送请求体时生成适当的 HTTP 响应(例如 400 Bad Request)。
【Handling this event involves calling response.writeContinue() if the
client should continue to send the request body, or generating an appropriate
HTTP response (e.g. 400 Bad Request) if the client should not continue to send
the request body.】
当此事件被触发并处理时,'request' 事件将不会被触发。
【When this event is emitted and handled, the 'request' event will
not be emitted.】