Skip to content

Commit

Permalink
dialer: add notice about sharing extensions internals
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kamardin authored and gobwas committed Oct 16, 2017
1 parent 5955585 commit bda85ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ type Dialer struct {

// Extensions is the list of extensions that client wants to speak.
//
// Note that if server decides to use some of this extensions, Dial() will
// return Handshake struct containing a slice of items, which are the
// shallow copies of the items from this list. That is, internals of
// Extensions items are shared during Dial().
//
// See https://tools.ietf.org/html/rfc6455#section-4.1
// See https://tools.ietf.org/html/rfc6455#section-9.1
Extensions []httphead.Option
Expand Down

0 comments on commit bda85ca

Please sign in to comment.