Documentation ¶
Index ¶
- Constants
- func CmdErr(err error)
- func Main(message core.Message, argv0 string, argv []string)
- func ParseBody(Body *[]byte)
- type FormVal
- type Gurl
- type GurlCmd
- type GurlCore
- func (g *GurlCore) AddFormStr(FormData []string)
- func (g *GurlCore) AddJsonFormStr(Jfa []string)
- func (g *GurlCore) GetOrBodyExec(client *http.Client) (*Response, error)
- func (g *GurlCore) HeadersAdd(req *http.Request)
- func (g *GurlCore) MultipartExec(client *http.Client) (*Response, error)
- func (g *GurlCore) MultipartNew() (*http.Request, chan error, error)
- func (g *GurlCore) ParseInit()
- func (g *GurlCore) SendExec(client *http.Client) (*Response, error)
- type Report
- type Response
Constants ¶
View Source
const ADD_LINE = 1 << 30
View Source
const (
DefaultConnections = 10000
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GurlCmd ¶
func (*GurlCmd) SubProcess ¶
type GurlCore ¶
type GurlCore struct { Method string `json:"method,omitempty"` Json []string `json:"Json,omitempty"` FormData []string `json:"FormData,omitempty"` Header []string `json:"Header,omitempty"` // http header Url string `json:"url,omitempty"` Output string `json:"o,omitempty"` Jfa []string `json:"Jfa,omitempty"` FormCache []FormVal `json:"-"` Body []byte `json:"body,omitempty"` Flag int Verbose bool `json:"-"` UserAgent string Color bool Query []string NotParseAt map[string]struct{} }
func CopyAndNew ¶
func (*GurlCore) AddFormStr ¶
func (*GurlCore) AddJsonFormStr ¶
func (*GurlCore) GetOrBodyExec ¶
func (*GurlCore) HeadersAdd ¶
func (*GurlCore) MultipartExec ¶
func (*GurlCore) MultipartNew ¶
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) SetDuration ¶
func (*Report) StartReport ¶
func (r *Report) StartReport()
Click to show internal directories.
Click to hide internal directories.