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

Function createFixedBody

http_test.go:2813–2819  ·  view source on GitHub ↗
(bodySize int)

Source from the content-addressed store, hash-verified

2811}
2812
2813func createFixedBody(bodySize int) []byte {
2814 b := make([]byte, 0, bodySize)
2815 for i := range bodySize {
2816 b = append(b, byte(i%10)+'0')
2817 }
2818 return b
2819}
2820
2821func createChunkedBody(body []byte, trailer map[string]string, withEnd bool) []byte {
2822 var b []byte

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…