Skip to content

JuliaComputing/HTTPDownloads.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPDownloads

Build Status

A package which allows Downloads.jl to be used as a backend for HTTP client requests when using the HTTP.jl package.

Usage:

import HTTPDownloads

HTTPDownloads.set_downloads_backend()

# Now use HTTP.jl as normal
using HTTP
HTTP.get("https://httpbingo.julialang.org/get")

HTTPDownloads works by modifying the default HTTP.stack() to intercept requests before they get to HTTP's ConnectionPoolLayer.

To be a feature-complete drop in replacement, this means it should support all keyword arguments within the HTTP layers ConnectionPoolLayer, TimeoutLayer and StreamLayer. However, not all of these are implemented yet (see the source for request())

About

Use Downloads.jl as a backend for HTTP.jl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages