MCPcopy
hub / github.com/axios/axios / createHttp2Axios

Function createHttp2Axios

tests/unit/adapters/http.test.js:5305–5312  ·  view source on GitHub ↗
(baseURL)

Source from the content-addressed store, hash-verified

5303
5304 describe('HTTP2', () => {
5305 const createHttp2Axios = (baseURL) =>
5306 axios.create({
5307 baseURL,
5308 httpVersion: 2,
5309 http2Options: {
5310 rejectUnauthorized: false,
5311 },
5312 });
5313
5314 it('should merge request http2Options with its instance config', async () => {
5315 const http2Axios = createHttp2Axios('https://localhost:8080');

Callers 1

http.test.jsFile · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected