18 lines
310 B
Go
18 lines
310 B
Go
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
|
|
Host string
|
|
Domain string
|
|
}
|