From f304a07a8cfe67b2a65f95f27eb10a9b854c4ef8 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Sat, 28 May 2022 16:53:20 +0300 Subject: Improved middlewares --- example/test.http | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'example/test.http') diff --git a/example/test.http b/example/test.http index e126917..9e71f9e 100644 --- a/example/test.http +++ b/example/test.http @@ -19,7 +19,7 @@ Content-Type: application/json "method": "divide", "params": { "a": 10, - "b": 3 + "b": 10 }, "id": 2 } @@ -44,3 +44,18 @@ Content-Type: application/json {"foo": "boo"} {"jsonrpc": "2.0", "method": "foo.get", "params": {"name": "myself"}, "id": "5"} {"jsonrpc": "2.0", "method": "get_data", "id": "9"} + { + "jsonrpc": "2.0", + "method": "divide", + "params": { + "a": 10, + "b": 0 + }, + "id": "divide" + } + { + "jsonrpc": "2.0", + "method": "divide", + "params": {}, + "id": "divide" + } -- cgit v1.2.3