Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Oct 26, 2018
1 parent 5b1523c commit 22e9696
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type Client struct {
httpClient *http.Client
useMultipartForm bool

//closeReq will close the request body immediately allowing for reuse of client
// closeReq will close the request body immediately allowing for reuse of client
closeReq bool

// Log is called with various debug information.
Expand Down Expand Up @@ -239,11 +239,12 @@ func UseMultipartForm() ClientOption {
}

//ImmediatelyCloseReqBody will close the req body immediately after each request body is ready
func ImmediatelyCloseReqBody() ClientOption{
func ImmediatelyCloseReqBody() ClientOption {
return func(client *Client) {
client.closeReq = true
}
}

// ClientOption are functions that are passed into NewClient to
// modify the behaviour of the Client.
type ClientOption func(*Client)
Expand Down

0 comments on commit 22e9696

Please sign in to comment.