ConnectionClose returns true if 'Connection: close' header is set.
()
| 179 | |
| 180 | // ConnectionClose returns true if 'Connection: close' header is set. |
| 181 | func (resp *Response) ConnectionClose() bool { |
| 182 | return resp.Header.ConnectionClose() |
| 183 | } |
| 184 | |
| 185 | // SetConnectionClose sets 'Connection: close' header. |
| 186 | func (resp *Response) SetConnectionClose() { |