13 |
14 |
PlayGround it is
15 |
16 | <#list req.allParams() as name, values>
17 | <#list values as value>
18 | ${name} = ${value}
19 | #list>
20 | #list>
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/NettyDemo/rpckids-master/.gitignore:
--------------------------------------------------------------------------------
1 | .settings
2 | .project
3 | .classpath
4 | *.class
5 | target
6 | deploy
7 | dependency-reduced-pom.xml
8 |
--------------------------------------------------------------------------------
/NettyDemo/rpckids-master/README.md:
--------------------------------------------------------------------------------
1 | rpckids
2 | --
3 | RPC framework based on netty for kids
4 |
5 | Feature
6 | --
7 | 1. Extremely lightweight compared with other rpc frameworks.
8 | 2. Extremely easy to use, Extermly low cost for learning.
9 | 3. Extremely easy to understand, With approximately 800 lines of code.
10 | 4. Base on JSON protocol
11 |
12 | Hello Server
13 | --
14 | ```java
15 | import java.util.ArrayList;
16 | import java.util.List;
17 |
18 | import io.netty.channel.ChannelHandlerContext;
19 | import rpckids.server.IMessageHandler;
20 | import rpckids.server.MessageOutput;
21 | import rpckids.server.RPCServer;
22 |
23 | class FibRequestHandler implements IMessageHandler