Lines Matching defs:function
219 if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
220 throw new InvalidArgumentError('connect must be a function or an object')
255 if (typeof connect !== 'function') {
429 function onHttp2SessionError (err) {
437 function onHttp2FrameError (type, code, id) {
446 function onHttp2SessionEnd () {
451 function onHTTP2GoAway (code) {
491 async function lazyllhttp () {
1041 function onParserTimeout (parser) {
1060 function onSocketReadable () {
1067 function onSocketError (err) {
1087 function onError (client, err) {
1107 function onSocketEnd () {
1121 function onSocketClose () {
1164 async function connect (client) {
1329 function emitDrain (client) {
1334 function resume (client, sync) {
1351 function _resume (client, sync) {
1476 function shouldSendContentLength (method) {
1480 function write (client, request) {
1503 if (body && typeof body.read === 'function') {
1629 if (typeof body.stream === 'function') {
1645 function writeH2 (client, session, request) {
1729 if (body && typeof body.read === 'function') {
1810 stream.once('error', function (err) {
1845 function writeBodyH2 () {
1858 if (typeof body.stream === 'function') {
1909 function writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
1933 function onPipeData (chunk) {
1944 const onData = function (chunk) {
1957 const onDrain = function () {
1966 const onAbort = function () {
1973 const onFinished = function (err) {
2024 async function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
2059 async function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
2063 function onDrain () {
2274 function errorRequest (client, request, err) {