checkExpectation event (http.ClientRequest)

Event: 'checkExpectation'

function (request, response) { }

Emitted each time a request with an http Expect header is received, where the value is not 100-continue. If this event isn't listened for, the server will automatically respond with a 417 Expectation Failed as appropriate.

Note that when this event is emitted and handled, the request event will not be emitted.

doc_Nodejs
2016-04-30 04:37:54
Comments
Leave a Comment

Please login to continue.