Lines Matching defs:function
119 function validateHost(host, name) {
135 function ClientRequest(input, options, cb) {
150 if (typeof options === 'function') {
162 if (typeof options.createConnection !== 'function') {
167 } else if (typeof agent.addRequest !== 'function') {
347 if (typeof optsWithoutSignal.createConnection === 'function') {
374 ClientRequest.prototype._finish = function _finish() {
385 headers: typeof this.getHeaders === 'function' ? this.getHeaders() : {},
401 ClientRequest.prototype._implicitHeader = function _implicitHeader() {
409 ClientRequest.prototype.abort = function abort() {
418 ClientRequest.prototype.destroy = function destroy(err) {
435 function emitAbortNT(req) {
439 function ondrain() {
447 function socketCloseListener() {
492 function socketErrorListener(err) {
516 function socketOnEnd() {
534 function socketOnData(d) {
603 function statusIsInformational(status) {
612 function parserOnIncomingClient(res, shouldKeepAlive) {
715 function responseKeepAlive(req) {
746 function responseOnEnd() {
760 if (typeof socket.destroySoon === 'function')
780 function responseOnTimeout() {
788 // This function is necessary in the case where we receive the entire response
790 function requestOnFinish() {
797 function emitFreeNT(req) {
805 function tickOnSocket(req, socket) {
844 function emitRequestTimeout() {
851 function listenSocketTimeout(req) {
867 ClientRequest.prototype.onSocket = function onSocket(socket, err) {
873 function onSocketNT(req, socket, err) {
877 function _destroy(req, err) {
910 function _deferToConnect(method, arguments_) {
911 // This function is for calls that need to happen once the socket is
937 ClientRequest.prototype.setTimeout = function setTimeout(msecs, callback) {
955 function setSocketTimeout(sock, msecs) {
957 sock.once('connect', function() {
965 ClientRequest.prototype.setNoDelay = function setNoDelay(noDelay) {
970 function setSocketKeepAlive(enable, initialDelay) {
974 ClientRequest.prototype.clearTimeout = function clearTimeout(cb) {