Skip to content

Plugin for http.Transport with support for ftp:// protocol

License

Notifications You must be signed in to change notification settings

afosto/go-ftp-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ftp-protocol

Plugin for http.Transport with support for ftp:// protocol in Go.

Limitations: only file retrieval operations. authentication in case of the url containing the username password

Internally connections to FTP servers are cached and re-used when possible.

Example usage:

import "github.com/afosto/go-ftp-protocol/protocol"

transport := &http.Transport{}
transport.RegisterProtocol("ftp", &protocol.FTPRoundTripper{})

client := &http.Client{Transport: transport}

resp, err := client.Get("ftp://ftp.ru.debian.org/debian/README")

License: MIT

Base on FTP client library: http://github.com/jlaffaye/ftp/

About

Plugin for http.Transport with support for ftp:// protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%