MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / ServeHTTP

Method ServeHTTP

rpc/jsonrpc/server/http_server.go:254–257  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

252}
253
254func (h maxBytesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
255 r.Body = http.MaxBytesReader(w, r.Body, h.n)
256 h.h.ServeHTTP(w, r)
257}
258
259// Listen starts a new net.Listener on the given address.
260// It returns an error if the address is invalid or the call to Listen() fails.

Callers 7

TestRPCParamsFunction · 0.45
TestJSONRPCIDFunction · 0.45
TestRPCNotificationFunction · 0.45
TestUnknownRPCPathFunction · 0.45
TestRPCResponseCacheFunction · 0.45
RecoverAndLogHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestRPCParamsFunction · 0.36
TestJSONRPCIDFunction · 0.36
TestRPCNotificationFunction · 0.36
TestUnknownRPCPathFunction · 0.36
TestRPCResponseCacheFunction · 0.36