{"modulePath":"github.com/raspberrypython/testify","version":"v0.0.0-20150620232711-089c7181b8c7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\nA set of tools to make testing http activity using the Go testing system easier.\n\n## Types\n\n```go\ntype TestResponseWriter struct {\n\n\t// StatusCode is the last int written by the call to WriteHeader(int)\n\tStatusCode int\n\n\t// Output is a string containing the written bytes using the Write([]byte) func.\n\tOutput string\n\t// contains filtered or unexported fields\n}\n```\nTestResponseWriter is a http.ResponseWriter object that keeps track of all activity allowing you to make assertions about how it was used.\n\nDEPRECATED: We recommend you use [http://golang.org/pkg/net/http/httptest](http://golang.org/pkg/net/http/httptest) instead.\n\n```go\nfunc (rw *TestResponseWriter) Header() http.Header\n```\nHeader gets the http.Header describing the headers that were set in this response.\n\n```go\nfunc (rw *TestResponseWriter) Write(bytes []byte) (int, error)\n```\nWrite writes the specified bytes to Output.\n\n```go\nfunc (rw *TestResponseWriter) WriteHeader(i int)\n```\nWriteHeader stores the HTTP status code in the StatusCode.\n\n```go\ntype TestRoundTripper struct {\n\tmock.Mock\n}\n```\n\n```go\nfunc (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)\n```\n\n","path":"github.com/raspberrypython/testify/http","name":"http","synopsis":"A set of tools to make testing http activity using the Go testing system easier.","isRedistributable":true}
