MCPcopy Index your code
hub / github.com/kataras/iris / WriteString

Method WriteString

context/context.go:3369–3371  ·  view source on GitHub ↗

WriteString writes a simple string to the response. Returns the number of bytes written and any write error encountered.

(body string)

Source from the content-addressed store, hash-verified

3367//
3368// Returns the number of bytes written and any write error encountered.
3369func (ctx *Context) WriteString(body string) (n int, err error) {
3370 return io.WriteString(ctx.writer, body)
3371}
3372
3373const (
3374 // ContentTypeHeaderKey is the header key of "Content-Type".

Callers 15

StopWithTextMethod · 0.95
NegotiateMethod · 0.95
TestConfigurationYAMLFunction · 0.80
TestConfigurationTOMLFunction · 0.80
TestNoCacheFunction · 0.80
TestStaticCacheFunction · 0.80
TestCache304Function · 0.80
TestETagFunction · 0.80
TestFlashMessagesFunction · 0.80
secretFunction · 0.80
NewAppFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestConfigurationYAMLFunction · 0.64
TestConfigurationTOMLFunction · 0.64
TestNoCacheFunction · 0.64
TestStaticCacheFunction · 0.64
TestCache304Function · 0.64
TestETagFunction · 0.64
TestFlashMessagesFunction · 0.64
TestHandlerUsingNetHTTPFunction · 0.64
TestRequestIDFunction · 0.64
TestJWTFunction · 0.64