mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-27 21:55:28 +00:00
21 lines
723 B
Go
21 lines
723 B
Go
package requests
|
|
|
|
import (
|
|
"github.com/projectdiscovery/nuclei/pkg/matchers"
|
|
)
|
|
|
|
// Request contains a request to be made from a template
|
|
type Request struct {
|
|
// Method is the request method, whether GET, POST, PUT, etc
|
|
Method string `yaml:"method"`
|
|
// Path contains the path/s for the request
|
|
Path []string `yaml:"path"`
|
|
// Headers contains headers to send with the request
|
|
Headers map[string]string `yaml:"headers,omitempty"`
|
|
// Body is an optional parameter which contains the request body for POST methods, etc
|
|
Body string `yaml:"body,omitempty"`
|
|
// Matchers contains the detection mechanism for the request to identify
|
|
// whether the request was successful
|
|
Matchers []*matchers.Matcher `yaml:"matchers"`
|
|
}
|