MCPcopy
hub / github.com/influxdata/telegraf / Write

Method Write

plugins/inputs/phpfpm/child.go:88–93  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

86}
87
88func (r *response) Write(data []byte) (int, error) {
89 if !r.wroteHeader {
90 r.WriteHeader(http.StatusOK)
91 }
92 return r.w.Write(data)
93}
94
95// WriteHeader sends an HTTP response header with the provided status code.
96func (r *response) WriteHeader(code int) {

Callers

nothing calls this directly

Calls 2

WriteHeaderMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected