Skip to content

Commit

Permalink
Rename RequestFinished to ResponseReceived.
Browse files Browse the repository at this point in the history
iheanyi committed Nov 28, 2019
1 parent 0b0a937 commit 33e3c73
Showing 19 changed files with 91 additions and 91 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ type ClientHooks struct {
// to the Twirp server.
RequestPrepared func(context.Context, *http.Request) (context.Context, error)

// RequestFinished is called after a request has finished sending. Since this is terminal, the context is
// ResponseReceived is called after a request has finished sending. Since this is terminal, the context is
// not returned.
RequestFinished func(context.Context)
ResponseReceived func(context.Context)

// Error hook is called whenever an error occurs during the sending of a request. The Error is passed
// as an argument to the hook.
14 changes: 7 additions & 7 deletions clientcompat/internal/clientcompat/clientcompat.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions example/service.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/twirptest/empty_service/empty_service.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/gogo_compat/service.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions internal/twirptest/google_protobuf_imports/service.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/importable/importable.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/importer/importer.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/importmapping/x/x.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/multiple/multiple1.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions internal/twirptest/multiple/multiple2.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions internal/twirptest/no_package_name/no_package_name.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 33e3c73

Please sign in to comment.