2020-08-03 20:48:58 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type AcsRequest interface {
|
|
|
|
GetReadTimeout() time.Duration
|
|
|
|
GetConnectTimeout() time.Duration
|
|
|
|
SetReadTimeout(readTimeOut time.Duration)
|
|
|
|
SetConnectTimeout(connectTimeOut time.Duration)
|
|
|
|
}
|
|
|
|
|
|
|
|
type baseRequest struct {
|
|
|
|
Scheme string
|
|
|
|
Method string
|
2020-08-03 21:00:41 +08:00
|
|
|
Host string
|
|
|
|
Domain string
|
2020-08-03 20:48:58 +08:00
|
|
|
}
|