Skip to content

Commit

Permalink
Merge pull request #41 from hboon/patch-1
Browse files Browse the repository at this point in the history
Fix typo in README.md
  • Loading branch information
Dmitry Bespalov authored Jan 7, 2021
2 parents bc8139f + f0b77b6 commit c869387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You do this by registering request handlers. You have the flexibility to registe
server.register(handler: PersonalSignHandler(for: self, server: server, wallet: wallet))
```

Handlers are asked (in order of registration) whether they can handle each request. First handler that returns `true` from `canHandle(request:)` method will get the `hanlde(request:)` call. All other handlers will be skipped.
Handlers are asked (in order of registration) whether they can handle each request. First handler that returns `true` from `canHandle(request:)` method will get the `handle(request:)` call. All other handlers will be skipped.

In the request handler, check the incoming request's method in `canHandle` implementation, and handle actual request in the `handle(request:)` implementation.

Expand Down

0 comments on commit c869387

Please sign in to comment.