21 lines
650 B
Go
21 lines
650 B
Go
//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"
|
|
)
|
|
|
|
func validateAppleTransport(ctx context.Context, options option.HTTPClientOptions) error {
|
|
return E.New("Apple HTTP engine is not available on non-Apple platforms")
|
|
}
|
|
|
|
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")
|
|
}
|