go-ftp-protocol

module
v0.0.0-...-066b75c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2014 License: MIT

README

go-ftp-protocol

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

Limitations: only anonymous FTP servers, only file retrieval operations.

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

Example usage:

import "github.com/smira/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/

Directories

Path Synopsis
Package protocol implements ftp:// scheme plugin for http.Transport github.com/jlaffaye/ftp library is used internally as FTP client implementation.
Package protocol implements ftp:// scheme plugin for http.Transport github.com/jlaffaye/ftp library is used internally as FTP client implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL