MCPcopy
hub / github.com/axios/axios / encode

Method encode

lib/helpers/formDataToStream.js:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 async *encode() {
42 yield this.headers;
43
44 const { value } = this;
45
46 if (utils.isTypedArray(value)) {
47 yield value;
48 } else {
49 yield* readBlob(value);
50 }
51
52 yield CRLF_BYTES;
53 }
54
55 static escapeName(name) {
56 return String(name).replace(

Callers 6

formDataToStreamFunction · 0.95
constructorMethod · 0.80
factoryFunction · 0.80
fetch.test.jsFile · 0.80
startFunction · 0.80

Calls

no outgoing calls

Tested by 1

startFunction · 0.64