Documentation
¶
Overview ¶
Package recording defines the data structures used to record and replay invokations of "rsc" for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recording ¶
type Recording struct { CmdArgs []string // command line arguments ExitCode int // Exit code Stdout string // Exit print RR RequestResponse // back-end request/response }
Single "rsc" invokation recording
type RequestResponse ¶
type RequestResponse struct {
Verb, Uri string // request http verb and full uri with query string
ReqHeader http.Header // headers before std additions, such as user-agent
ReqBody string // not []byte so that json.Marshal doesn't produce base64
Status int // numerical response status
RespHeader http.Header // full response headers
RespBody string // not []byte so that json.Marshal doesn't produce base64
}
HTTP Request and response details
Click to show internal directories.
Click to hide internal directories.