MCPcopy Index your code
hub / github.com/php/frankenphp / WriteString

Method WriteString

recorder_test.go:123–129  ·  view source on GitHub ↗

WriteString implements io.StringWriter. The data in str is written to rw.Body, if not nil.

(str string)

Source from the content-addressed store, hash-verified

121// WriteString implements io.StringWriter. The data in str is written
122// to rw.Body, if not nil.
123func (rw *ResponseRecorder) WriteString(str string) (int, error) {
124 rw.writeHeader(nil, str)
125 if rw.Body != nil {
126 rw.Body.WriteString(str)
127 }
128 return len(str), nil
129}
130
131func checkWriteHeaderCode(code int) {
132 // Issue 22880: require valid WriteHeader status codes.

Callers 8

go_get_custom_php_iniFunction · 0.80
generateParamParsingMethod · 0.80
buildContentMethod · 0.80
escapeCStringFunction · 0.80
generateMethod · 0.80
extractVariablesMethod · 0.80

Calls 1

writeHeaderMethod · 0.95

Tested by

no test coverage detected