Skip to content

Commit

Permalink
fix Write() method delegation and add function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inconshreveable committed Nov 6, 2013
1 parent 1e3fb74 commit 929912b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion http.go
Expand Up @@ -8,9 +8,11 @@ import (

type HTTPConn struct {
*sharedConn
*http.Request
Request *http.Request
}

// HTTP parses the head of the first HTTP request on conn and returns
// a new, unread connection with metadata for virtual host muxing
func HTTP(conn net.Conn) (httpConn *HTTPConn, err error) {
c, rd := newShared(conn)

Expand Down
4 changes: 3 additions & 1 deletion tls.go
Expand Up @@ -79,9 +79,11 @@ const (
// It implements the net.Conn interface.
type TLSConn struct {
*sharedConn
*ClientHelloMsg
ClientHelloMsg *ClientHelloMsg
}

// TLS parses the ClientHello message on conn and returns
// a new, unread connection with metadata for virtual host muxing
func TLS(conn net.Conn) (tlsConn *TLSConn, err error) {
c, rd := newShared(conn)

Expand Down

0 comments on commit 929912b

Please sign in to comment.