MCPcopy Create free account
hub / github.com/goadesign/goa / Write

Method Write

http/middleware/debug.go:109–112  ·  view source on GitHub ↗

Write writes the data to the buffer and connection as part of an HTTP reply.

(b []byte)

Source from the content-addressed store, hash-verified

107
108// Write writes the data to the buffer and connection as part of an HTTP reply.
109func (r *responseDupper) Write(b []byte) (int, error) {
110 r.Buffer.Write(b)
111 return r.ResponseWriter.Write(b)
112}
113
114// WriteHeader records the status and sends an HTTP response header with status code.
115func (r *responseDupper) WriteHeader(s int) {

Callers 14

EncodeMethod · 0.45
TestMiddlewaresFunction · 0.45
FprintMethod · 0.45
DebugFunction · 0.45
TestClientTypesFunction · 0.45
TestClientTypeFilesFunction · 0.45
TestExampleServerFilesFunction · 0.45
TestExampleCLIFilesFunction · 0.45
TestCookieAPIKeySecurityFunction · 0.45
renderClientTypesCodeFunction · 0.45
TestServerTypesFunction · 0.45
renderFileToStringFunction · 0.45

Calls

no outgoing calls

Tested by 9

TestMiddlewaresFunction · 0.36
TestClientTypesFunction · 0.36
TestClientTypeFilesFunction · 0.36
TestExampleServerFilesFunction · 0.36
TestExampleCLIFilesFunction · 0.36
TestCookieAPIKeySecurityFunction · 0.36
renderClientTypesCodeFunction · 0.36
TestServerTypesFunction · 0.36
renderFileToStringFunction · 0.36