Files
projectdiscovery-httpx/common/customheader/customheader.go
T
2020-05-29 09:37:55 +00:00

16 lines
314 B
Go

package customheader
// CustomHeaders valid for all requests
type CustomHeaders []string
// String returns just a label
func (c *CustomHeaders) String() string {
return "Custom Global Headers"
}
// Set a new global header
func (c *CustomHeaders) Set(value string) error {
*c = append(*c, value)
return nil
}