INNER CODE UNIT · Go
WithMaxResponseSize
movio/bramble · client.go:102
func WithMaxResponseSize(maxResponseSize int64) ClientOpt {
return func(s *GraphQLClient) {
s.MaxResponseSize = maxResponseSize
}
}
func WithTimeout(timeout time.Duration) ClientOpt {
return func(s *GraphQLClient) {
s.HTTPClient.Timeout = timeout
}
}
// WithUserAgent set the user agent used by the client.
func WithUserAgent(userAgent string) ClientOpt {
return func(s *GraphQLClient) {
s.UserAgent = userAgent
}
}