Discover Packages
github.com/mpl/scgiclient
package
module
Version:
v0.0.0-...-88aedc8
Opens a new window with list of versions in this module.
Published: Oct 22, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
scgiclient
Because I needed to talk scgi to do [rtorrentrpc] 1
Install:
Install Go: http://golang.org/doc/install
go get github.com/mpl/scgiclient
Expand ▾
Collapse ▴
Documentation
¶
NewRequest returns a Request ready to be sent with
Request.Send().
Close closes the connection to r.Addr.
Receive reads the response from r.Addr and returns
it in a Response. The connection to r.Addr must already
be established.
Send sends an scgi message built with
r.Header and r.Body, to r.Addr. It returns the
number of bytes sent and an error, if any.
type Response struct {
Body []byte
}
Send sends and scgi request to addr, with
all the data read from r as the body of the request.
The received response is returned and the connection
to addr is closed.
Close closes the connection to r.Addr.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.