crypto/tls.RecordHeaderError.Conn (field)
5 uses
crypto/tls (current package)
conn.go#L574: Conn net.Conn
conn.go#L581: err.Conn = conn
net/http
server.go#L1895: if re, ok := err.(tls.RecordHeaderError); ok && re.Conn != nil && tlsRecordHeaderLooksLikeHTTP(re.RecordHeader) {
server.go#L1896: io.WriteString(re.Conn, "HTTP/1.0 400 Bad Request\r\n\r\nClient sent an HTTP request to an HTTPS server.\n")
server.go#L1897: re.Conn.Close()
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |