2026-04-14 22:59:46 +08:00
|
|
|
//go:build !darwin || !cgo
|
|
|
|
|
|
|
|
|
|
package httpclient
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/sagernet/sing-box/option"
|
|
|
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
|
|
|
"github.com/sagernet/sing/common/logger"
|
|
|
|
|
N "github.com/sagernet/sing/common/network"
|
|
|
|
|
)
|
|
|
|
|
|
2026-07-15 20:50:36 +08:00
|
|
|
func validateAppleTransport(ctx context.Context, options option.HTTPClientOptions) error {
|
|
|
|
|
return E.New("Apple HTTP engine is not available on non-Apple platforms")
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-14 22:59:46 +08:00
|
|
|
func newAppleTransport(ctx context.Context, logger logger.ContextLogger, rawDialer N.Dialer, options option.HTTPClientOptions) (innerTransport, error) {
|
|
|
|
|
return nil, E.New("Apple HTTP engine is not available on non-Apple platforms")
|
|
|
|
|
}
|