This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server stats: | |
0: 96 - Bytes sent | |
1: 6,568 - Bytes received | |
2: 0 - Failed offers to ReceiverProxy | |
3: 0 - Failed offers to SenderProxy | |
4: 0 - Failed offers to DriverConductorProxy | |
5: 0 - NAKs sent | |
6: 0 - NAKs received | |
7: 147 - SMs sent | |
8: 145 - SMs received |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def content = client.get('/test123') { req -> | |
//prepare content-type | |
req.header('Content-Type', 'text/plain') | |
//return a producing stream to send some data along the request | |
Streams | |
.just("Hello") | |
.log('client-send') | |
}.flatMap { replies -> |