| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Fix the example at the bottom of the file
|
|
|
|
Move request validation to a separate proc instead of generating the checks
inline for all handleRequest() procs.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|