这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions humatest/humatest.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type TestAPI interface {
// request body. Anything else will panic.
//
// // Make a POST request
// api.PostCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PostCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a POST request with a custom header.
// api.PostCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -102,7 +102,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a POST request
// api.Post("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Post("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a POST request with a custom header.
// api.Post("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -115,7 +115,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PUT request
// api.PutCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PutCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PUT request with a custom header.
// api.PutCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -128,7 +128,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PUT request
// api.Put("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Put("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PUT request with a custom header.
// api.Put("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -141,7 +141,7 @@ type TestAPI interface {
// request body. Anything else will panic.
//
// // Make a PATCH request
// api.PatchCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PatchCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PATCH request with a custom header.
// api.PatchCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -154,7 +154,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PATCH request
// api.Patch("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Patch("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PATCH request with a custom header.
// api.Patch("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand Down
Loading