(chunk models.HTTPStreamChunk, key string)
| 1456 | } |
| 1457 | |
| 1458 | func 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 | |
| 1468 | type sseField struct { |
| 1469 | key string |
no outgoing calls
no test coverage detected