1
1
mirror of https://github.com/OJ/gobuster.git synced 2025-09-23 06:37:40 +02:00
gobuster/libgobuster/options_http.go
Christian Mehlmauer 1e7533c73d fix #567
2025-06-30 11:40:51 +02:00

35 lines
756 B
Go

package libgobuster
import (
"crypto/tls"
"net"
"net/url"
"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
TLSRenegotiation bool
LocalAddr *net.TCPAddr
}
// HTTPOptions is the struct to pass in all http options to Gobuster
type HTTPOptions struct {
BasicHTTPOptions
Password string
URL *url.URL
Username string
Cookies string
Headers []HTTPHeader
NoCanonicalizeHeaders bool
FollowRedirect bool
Method string
}