Skip to content

Commit

Permalink
update: 添加plugin-jetty-client的使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jun 14, 2018
1 parent 73009e5 commit 1a3509b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion nutz-plugins-jetty-client/README.md
Expand Up @@ -9,8 +9,19 @@ nutz-plugins-jetty-client
用法
==================================

全局使用, 在项目启动时调用一次即可
全局使用: 在项目启动时调用一次即可

```
Sender.setFactory(new JettySenderFactory());
```

局部使用

```
public static SenderFactory senderFactory = new JettySenderFactory();
// 原本的调用是这样的
Response resp = Sender.create(req).send();
// 改成
Response resp = senderFactory.create(req).send();
```

0 comments on commit 1a3509b

Please sign in to comment.