| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
- exports[`toHeaders > empty 1`] = `[]`;
- exports[`toHeaders > mixed 1`] = `
- [
- {
- "name": "Host",
- "value": "a.example.test",
- },
- {
- "name": "X-Trace",
- "value": "1",
- },
- {
- "name": "X-Trace",
- "value": "2",
- },
- ]
- `;
- exports[`toHeaders > multi array 1`] = `
- [
- {
- "name": "Accept",
- "value": "text/html",
- },
- {
- "name": "Accept",
- "value": "application/json",
- },
- ]
- `;
- exports[`toHeaders > null 1`] = `[]`;
- exports[`toHeaders > primitive 1`] = `[]`;
- exports[`toHeaders > single array 1`] = `
- [
- {
- "name": "Host",
- "value": "a.example.test",
- },
- ]
- `;
- exports[`toHeaders > single string 1`] = `
- [
- {
- "name": "Host",
- "value": "example.test",
- },
- ]
- `;
- exports[`toHeaders > undefined 1`] = `[]`;
- exports[`toV2Headers (arr=false) > duplicate name 1`] = `
- {
- "Accept": "application/json",
- }
- `;
- exports[`toV2Headers (arr=false) > empty 1`] = `{}`;
- exports[`toV2Headers (arr=false) > empty name skipped 1`] = `
- {
- "X-Real": "kept",
- }
- `;
- exports[`toV2Headers (arr=false) > empty value skipped 1`] = `
- {
- "X-Real": "kept",
- }
- `;
- exports[`toV2Headers (arr=false) > single 1`] = `
- {
- "Host": "example.test",
- }
- `;
- exports[`toV2Headers (arr=true) > duplicate name 1`] = `
- {
- "Accept": [
- "text/html",
- "application/json",
- ],
- }
- `;
- exports[`toV2Headers (arr=true) > empty 1`] = `{}`;
- exports[`toV2Headers (arr=true) > empty name skipped 1`] = `
- {
- "X-Real": [
- "kept",
- ],
- }
- `;
- exports[`toV2Headers (arr=true) > empty value skipped 1`] = `
- {
- "X-Real": [
- "kept",
- ],
- }
- `;
- exports[`toV2Headers (arr=true) > single 1`] = `
- {
- "Host": [
- "example.test",
- ],
- }
- `;
|