MCPcopy
hub / github.com/gofiber/fiber / joinHeaderValues

Function joinHeaderValues

helpers.go:443–452  ·  view source on GitHub ↗
(headers [][]byte)

Source from the content-addressed store, hash-verified

441}
442
443func joinHeaderValues(headers [][]byte) []byte {
444 switch len(headers) {
445 case 0:
446 return nil
447 case 1:
448 return headers[0]
449 default:
450 return bytes.Join(headers, []byte{','})
451 }
452}
453
454func unescapeHeaderValue(v []byte) ([]byte, error) {
455 if bytes.IndexByte(v, '\\') == -1 {

Callers 6

Test_JoinHeaderValuesFunction · 0.85
AcceptsMethod · 0.85
AcceptsCharsetsMethod · 0.85
AcceptsEncodingsMethod · 0.85
AcceptsLanguagesMethod · 0.85

Calls

no outgoing calls

Tested by 1

Test_JoinHeaderValuesFunction · 0.68