mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 13:18:01 +08:00
21 lines
709 B
Go
21 lines
709 B
Go
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
package httpclient
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/net/gclient"
|
|
"github.com/gogf/gf/v2/os/glog"
|
|
)
|
|
|
|
// Config is the configuration struct for SDK client.
|
|
type Config struct {
|
|
URL string `v:"required"` // Service address. Eg: user.svc.local, http://user.svc.local
|
|
Client *gclient.Client // Custom underlying client.
|
|
Logger *glog.Logger // Custom logger.
|
|
RawDump bool // Whether auto dump request&response in stdout.
|
|
}
|