MCPcopy
hub / github.com/valyala/fasthttp / ConnectionClose

Method ConnectionClose

http.go:181–183  ·  view source on GitHub ↗

ConnectionClose returns true if 'Connection: close' header is set.

()

Source from the content-addressed store, hash-verified

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

Calls 1

ConnectionCloseMethod · 0.45