MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _write_mime_data

Method _write_mime_data

thirdparty/clientform/clientform.py:1281–1288  ·  view source on GitHub ↗

Write data for a subitem of this control to a MimeWriter.

(self, mw, name, value)

Source from the content-addressed store, hash-verified

1279 raise NotImplementedError()
1280
1281 def _write_mime_data(self, mw, name, value):
1282 """Write data for a subitem of this control to a MimeWriter."""
1283 # called by HTMLForm
1284 mw2 = mw.nextpart()
1285 mw2.addheader("Content-Disposition",
1286 'form-data; name="%s"' % name, 1)
1287 f = mw2.startbody(prefix=0)
1288 f.write(value)
1289
1290 def __str__(self):
1291 raise NotImplementedError()

Callers 1

_request_dataMethod · 0.45

Calls 4

nextpartMethod · 0.80
addheaderMethod · 0.80
startbodyMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected