MCPcopy
hub / github.com/httprunner/httprunner / initUpload

Function initUpload

hrp/step_request.go:254–260  ·  view source on GitHub ↗
(step *TStep)

Source from the content-addressed store, hash-verified

252}
253
254func initUpload(step *TStep) {
255 if step.Request.Headers == nil {
256 step.Request.Headers = make(map[string]string)
257 }
258 step.Request.Headers["Content-Type"] = "${multipart_content_type($m_encoder)}"
259 step.Request.Body = "$m_encoder"
260}
261
262func prepareUpload(parser *Parser, step *TStep, stepVariables map[string]interface{}) (err error) {
263 if len(step.Request.Upload) == 0 {

Callers 3

toTestCaseMethod · 0.85
WithUploadMethod · 0.85
extendWithAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected