mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
16 lines
314 B
Go
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
|
|
}
|