cabal-install-3.14.2.0: The command-line interface for Cabal and Hackage.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Client.HttpUtils

Description

Separate module for HTTP actions, using a proxy server if one exists.

Synopsis

Documentation

data HttpTransport Source #

Constructors

HttpTransport 

Fields

downloadURI Source #

Arguments

:: HttpTransport 
-> Verbosity 
-> URI

What to download

-> FilePath

Where to put it

-> IO DownloadResult 

transportCheckHttps :: Verbosity -> HttpTransport -> URI -> IO () Source #

If the URI scheme is HTTPS, ensure the transport supports HTTPS.

remoteRepoCheckHttps :: Verbosity -> HttpTransport -> RemoteRepo -> IO () Source #

If the remote repo is accessed over HTTPS, ensure that the transport supports HTTPS.

isOldHackageURI :: URI -> Bool Source #

Utility function for legacy support.