on ( 'response', ( response ) => ) Event: 'finish'Įmitted just after the last chunk of the request's data has been written intoĮmitted when the request is aborted. Strictly follow the Node.js model as described in theįor instance, we could have created the same request to '' as follows: Options properties such as protocol, host, hostname, port and path origin string (optional) - The origin URL of the request.Request.followRedirect is invoked synchronouslyĭuring the redirect event. When mode is manual the redirection will be cancelled unless When mode is error, any redirection willīe aborted. redirect string (optional) - Can be follow, error or manual.path string (optional) - The path part of the request URL.port Integer (optional) - The server's listening port number.hostname string (optional) - The server host name.The hostname and the port number 'hostname:port'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |