MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Write

Method Write

controller/mcp/writer.go:24–31  ·  view source on GitHub ↗
(bytes []byte)

Source from the content-addressed store, hash-verified

22}
23
24func (r *ResponseWriter) Write(bytes []byte) (int, error) {
25 re := regexp.MustCompile(`sessionId=([^&?\s]+)`)
26 match := re.FindStringSubmatch(string(bytes))
27 if len(match) > 1 {
28 r.sessionId <- match[1]
29 }
30 return r.Writer.Write(bytes)
31}
32
33func (r *ResponseWriter) WriteHeader(statusCode int) {
34 r.Writer.WriteHeader(statusCode)

Callers 7

saveCsvFunction · 0.80
streamHandlerFunction · 0.80
getShardMethod · 0.80
DeployMethod · 0.80
ExportSwaggerMethod · 0.80
zipFileFunction · 0.80
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by 1

streamHandlerFunction · 0.64