MCPcopy
hub / github.com/valyala/fasthttp / initHeaderValueBytes

Function initHeaderValueBytes

header.go:3407–3412  ·  view source on GitHub ↗
(bufV, value []byte)

Source from the content-addressed store, hash-verified

3405}
3406
3407func initHeaderValueBytes(bufV, value []byte) []byte {
3408 // https://tools.ietf.org/html/rfc7230#section-3.2.4
3409 bufV = append(bufV[:0], value...)
3410 bufV = removeNewLines(bufV)
3411 return bufV
3412}
3413
3414func getHeaderKeyBytes(bufK []byte, key string, disableNormalizing bool) []byte {
3415 bufK = append(bufK[:0], key...)

Callers 15

SetStatusMessageMethod · 0.85
SetProtocolMethod · 0.85
SetContentTypeBytesMethod · 0.85
SetServerBytesMethod · 0.85
SetHostBytesMethod · 0.85
SetUserAgentBytesMethod · 0.85
SetRefererBytesMethod · 0.85
SetMethodBytesMethod · 0.85
SetProtocolBytesMethod · 0.85
SetRequestURIBytesMethod · 0.85

Calls 1

removeNewLinesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…