http

package
v0.0.0-...-ad51fe8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2013 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Method string

	URL *url.URL

	Header map[string][]string

	Body          []byte
	ContentLength int64

	Host string

	BufferSize int64
	Created    time.Time
}

func (*Request) Write

func (req *Request) Write(w io.Writer) error

type Response

type Response struct {
	Request    *Request
	Status     string
	StatusCode int

	Header map[string][]string

	ContentLength int64

	BufferSize int64
}

func ReadResponse

func ReadResponse(r *bufio.Reader, tr *textproto.Reader) (time.Time, *Response, error)

Jump to

Keyboard shortcuts

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