1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-05-27 04:36:03 +02:00
gobuster/libgobuster/options_http.go
2024-04-23 09:00:47 +02:00

33 lines
708 B
Go

package libgobuster
import (
"crypto/tls"
"net"
"time"
)
// BasicHTTPOptions defines only core http options
type BasicHTTPOptions struct {
UserAgent string
Proxy string
NoTLSValidation bool
Timeout time.Duration
RetryOnTimeout bool
RetryAttempts int
TLSCertificate *tls.Certificate
LocalAddr net.Addr
}
// HTTPOptions is the struct to pass in all http options to Gobuster
type HTTPOptions struct {
BasicHTTPOptions
Password string
URL string
Username string
Cookies string
Headers []HTTPHeader
NoCanonicalizeHeaders bool
FollowRedirect bool
Method string
}