amzn / smoke-framework

A light-weight server-side service framework written in the Swift programming language.
Apache License 2.0
1.45k stars 41 forks source link

Register handlers using a protocol rather than the raw path directly. #33

Closed tachyonics closed 5 years ago

tachyonics commented 5 years ago

Issue #, if available:

Description of changes: Add the OperationIdentity protocol and register handlers under instances of this protocol rather than the url directly. This allows handlers to be registered using an enumeration for example to reduce the change of typos causing incorrect handler selection.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.