aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-23Update haberdasherserver.nimOskari Timperi
Fix the example at the bottom of the file
2018-04-23Update README.mdOskari Timperi
2018-04-23Add nimtwirp.validateRequest()Oskari Timperi
Move request validation to a separate proc instead of generating the checks inline for all handleRequest() procs.
2018-04-23Refactor + fix content-length issueOskari Timperi
This way need to generate a bit less code. Also include the Content-Length header always in POST requests made by the client. This fixes an issue when we are serializing a message with no fields and we have empty body. HttpClient does not include the Content-Length header for us, so we'll just include it every time to make our requests work in all cases.
2018-04-23Modify skipDirs: example -> examplesOskari Timperi
2018-04-21Update README.mdOskari Timperi
2018-04-21Add another example showcasing multiple servicesOskari Timperi
2018-04-21Move Haberdasher example under examples dirOskari Timperi
2018-04-21Try to make server side as async as you can getOskari Timperi
2018-04-19A bunch of changesOskari Timperi
- use parseopt2 in nimtwirp_build - define the prefix when running nimtwirp_build (defaults to `/twirp/`) - add a TwirpResponse type - replace concept with a type having callbacks for each rpc method (a la streams.nim) - check that a request is a POST and that it has a correct Content-Type - generate only a proc for handling the service, let the user handle responding to let them customize e.g. headers
2018-04-14Update README.mdOskari Timperi
2018-04-14Update nimtwirp.nimbleOskari Timperi
2018-04-14Update READMEOskari Timperi
2018-04-14Initial commitOskari Timperi