add api action
This commit is contained in:
parent
5c997f554b
commit
2d18bb2eec
19
modules/apiact/apiact.go
Normal file
19
modules/apiact/apiact.go
Normal file
@ -0,0 +1,19 @@
|
||||
package apiact
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// RequestObject -
|
||||
type RequestObject struct {
|
||||
Method string
|
||||
URL string
|
||||
Body io.Reader
|
||||
Headers map[string]string
|
||||
}
|
||||
|
||||
// GetRequest -
|
||||
func GetRequest(r RequestObject) (req *http.Request, err error) {
|
||||
return
|
||||
}
|
Loading…
Reference in New Issue
Block a user