Files
gluetun/internal/updater/unzip/unzip.go
T
2026-08-04 22:26:37 +00:00

27 lines
394 B
Go

package unzip
import (
"context"
"net/http"
)
type Unzipper struct {
client *http.Client
}
type contextKey int
const (
userAgentContextKey contextKey = iota
)
func WithUserAgent(ctx context.Context, userAgent string) context.Context {
return context.WithValue(ctx, userAgentContextKey, userAgent)
}
func New(client *http.Client) *Unzipper {
return &Unzipper{
client: client,
}
}