Add headers option for HTTP outbound

This commit is contained in:
PuerNya
2023-04-11 17:49:37 +08:00
committed by GitHub
parent f20642d6fd
commit 70e47df295
2 changed files with 15 additions and 6 deletions

View File

@@ -27,7 +27,8 @@ type SocksOutboundOptions struct {
type HTTPOutboundOptions struct {
DialerOptions
ServerOptions
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
TLS *OutboundTLSOptions `json:"tls,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
TLS *OutboundTLSOptions `json:"tls,omitempty"`
Headers map[string]Listable[string] `json:"headers,omitempty"`
}