MCPcopy
hub / github.com/fatedier/frp / SpecifiedHTTPBodyHandler

Function SpecifiedHTTPBodyHandler

test/e2e/framework/request.go:12–16  ·  view source on GitHub ↗
(body []byte)

Source from the content-addressed store, hash-verified

10)
11
12func SpecifiedHTTPBodyHandler(body []byte) http.HandlerFunc {
13 return func(w http.ResponseWriter, req *http.Request) {
14 _, _ = w.Write(body)
15 }
16}
17
18func ExpectResponseCode(code int) EnsureFunc {
19 return func(resp *request.Response) bool {

Callers 4

group.goFile · 0.92
http.goFile · 0.92
group.goFile · 0.92
http.goFile · 0.92

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…