You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its stable enough for now, but types are not propagated out of the responder, and this needs to be improved so that schema types from responder can then we passed on e.g.
constresponse=responder('200',{name: 'simon'})return{// Currently response is not typed :cry:
...response,headers: {'x-additional-header': 'not-worth-injection'}}
When need to allow for different request/response formats.
In general, we could have two scenario's:
Adapters
Option 1
We could configure the response adapter like:
Option 2
Design an interface.
If we will hand off the interfaces of
statusCode, body?, headers?
then we can allow for an adapter to be written like:The text was updated successfully, but these errors were encountered: