MCPcopy Create free account
hub / github.com/andybarry/flight / EncodeMultipartFormData

Function EncodeMultipartFormData

externals/gtest/scripts/upload.py:498–530  ·  view source on GitHub ↗

Encode form fields for multipart/form-data. Args: fields: A sequence of (name, value) elements for regular form fields. files: A sequence of (name, filename, value) elements for data to be uploaded as files. Returns: (content_type, body) ready for httplib.HTTP instance.

(fields, files)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

UploadFileMethod · 0.85
UploadSeparatePatchesFunction · 0.85
RealMainFunction · 0.85

Calls 1

GetContentTypeFunction · 0.85

Tested by

no test coverage detected