MCPcopy
hub / github.com/keploy/keploy / boundaryFromContentTypeHeader

Function boundaryFromContentTypeHeader

pkg/util.go:1064–1073  ·  view source on GitHub ↗
(contentType string)

Source from the content-addressed store, hash-verified

1062}
1063
1064func boundaryFromContentTypeHeader(contentType string) string {
1065 if contentType == "" {
1066 return ""
1067 }
1068 _, params, err := mime.ParseMediaType(contentType)
1069 if err != nil {
1070 return ""
1071 }
1072 return strings.TrimSpace(params["boundary"])
1073}
1074
1075func isLikelyStreamingHTTPResponse(tc *models.TestCase, resp *http.Response) bool {
1076 if resp != nil {

Callers 1

DetectHTTPStreamConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected