mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 12:27:37 +03:00
15 lines
269 B
Go
15 lines
269 B
Go
package badoption
|
|
|
|
import "net/http"
|
|
|
|
type HTTPHeader map[string]Listable[string]
|
|
|
|
func (h HTTPHeader) Build() http.Header {
|
|
header := make(http.Header)
|
|
for name, values := range h {
|
|
for _, value := range values {
|
|
header.Add(name, value)
|
|
}
|
|
}
|
|
return header
|
|
}
|