(key, value string)
| 155 | const headerContentType = "Content-Type" |
| 156 | |
| 157 | func (e *Event) setResponseHeaderIfEmpty(key, value string) { |
| 158 | header := e.Response.Header() |
| 159 | if header.Get(key) == "" { |
| 160 | header.Set(key, value) |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | // String writes a plain string response. |
| 165 | func (e *Event) String(status int, data string) error { |