MCPcopy Index your code
hub / github.com/keploy/keploy / streamChunkFieldValue

Function streamChunkFieldValue

pkg/util.go:1458–1466  ·  view source on GitHub ↗
(chunk models.HTTPStreamChunk, key string)

Source from the content-addressed store, hash-verified

1456}
1457
1458func streamChunkFieldValue(chunk models.HTTPStreamChunk, key string) (string, bool) {
1459 key = strings.ToLower(strings.TrimSpace(key))
1460 for _, field := range chunk.Data {
1461 if strings.ToLower(strings.TrimSpace(field.Key)) == key {
1462 return field.Value, true
1463 }
1464 }
1465 return "", false
1466}
1467
1468type sseField struct {
1469 key string

Callers 2

expectedBinaryBytesFunction · 0.85
extractExpectedRawQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected