Lines Matching +full:post +full:- +full:require +full:- +full:hook
2 // Flags: --expose-internals
3 const common = require('../common');
4 const initHooks = require('./init-hooks');
5 const { checkInvocations } = require('./hook-checks');
6 const assert = require('assert');
7 const { async_id_symbol } = require('internal/async_hooks').symbols;
8 const http = require('http');
11 // is not reused. Test is based on parallel\test-async-hooks-http-agent.js.
28 res.writeHead(200, { 'Content-Type': 'text/plain' });
41 agent, port, method: 'POST'
55 assert.strictEqual(socket[async_id_symbol], -1);
57 // Second request. To re-create the exact conditions from the
58 // referenced issue, we use a POST request without chunked encoding
59 // (hence the Content-Length header) and call .end() after the
62 agent, port, method: 'POST', headers: {
63 'Content-Length': payload.length