MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / append

Method append

Libraries/Network/FormData.js:55–62  ·  view source on GitHub ↗
(key: string, value: FormDataValue)

Source from the content-addressed store, hash-verified

53 }
54
55 append(key: string, value: FormDataValue) {
56 // The XMLHttpRequest spec doesn't specify if duplicate keys are allowed.
57 // MDN says that any new values should be appended to existing values.
58 // In any case, major browsers allow duplicate keys, so that's what we'll do
59 // too. They'll simply get appended as additional form data parts in the
60 // request body, leaving the server to deal with them.
61 this._parts.push([key, value]);
62 }
63
64 getParts(): Array<FormDataPart> {
65 return this._parts.map(([name, value]) => {

Callers 15

_uploadFunction · 0.95
onCreateMethod · 0.45
doInBackgroundGuardedMethod · 0.45
stackTraceToStringMethod · 0.45
connectMethod · 0.45
onProducerStartMethod · 0.45
onProducerEventMethod · 0.45
onRequestStartMethod · 0.45
createMethod · 0.45
runMethod · 0.45
formatFrameSourceMethod · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected