Toki Discussion
This repo is designed to capture and make public all discussion and work around the Toki Project. Please use Github Flavored Markdown and doctoc
for any TOCs.
Discussion and documents for the toki project
This repo is designed to capture and make public all discussion and work around the Toki Project. Please use Github Flavored Markdown and doctoc
for any TOCs.
Pulling this line of discussion into an issue rather than in-line comments in a merged PR.
"Archived" comments below came from this PR
WesTyler 13 minutes ago โข edited Member
@dhinklexo does calling something like response.send(payload) from within the method (like toki-method-http) simply attach that payload to the response that will eventually be sent by Toki? Or does it actually fire off the response object back to the client?
Basically do the toki plugins act like hapi prerequest handlers/decorators, or like the actual request handlers?
WesTyler 12 minutes ago Member
Or is this just a response object that is sent back to Toki to map to the main response and runtime context?
dhinklexo 9 minutes ago Member
(Context)
This is just a copy of the bridge response/request API(Answer)
It looks like that IS the current behavior. Whether or not that's the desired behavior on the other hand..
WesTyler 4 minutes ago Member
My understanding from our initial talks about toki-method-http and toki-method-rabbit is that the method should define the shape of its result (via templated config) and do 2 things:
- pass that response back to toki, which will add it to the runtime context under the action's name property. future potential actions now have access to this mapped result.
- modify the "main" response object without sending it back to the client. This way toki can build up the main response by running it through all of the methods, then at the end send the total hydrated response back to the requesting client.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.