From cd061d43cbc7201649bdfd166870a44d37a0588f Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Thu, 19 Apr 2018 21:50:51 +0100 Subject: A bunch of changes - 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 --- example/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/Makefile') diff --git a/example/Makefile b/example/Makefile index 63da56f..74f6709 100644 --- a/example/Makefile +++ b/example/Makefile @@ -7,4 +7,4 @@ haberdasherclient: haberdasherclient.nim service_pb.nim service_twirp.nim nim c haberdasherclient.nim %_pb.nim %_twirp.nim: %.proto - ../nimtwirp/nimtwirp_build -I. --out=. $^ + ../nimtwirp/nimtwirp_build -I:. --out:. $^ -- cgit v1.2.3