Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu authored Oct 5, 2018
1 parent 22eb491 commit d06d3e2
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,19 @@ public void plaintext(HttpServerExchange exchange)
response("Hello, World!").contentType(PLAINTEXT_TYPE).send(exchange);
}
```
In addition, the `io.sinistral.proteus.annotations.Blocking` annotation can be used to explicitly mark a method for blocked request handling.
Proteus has three built in annotations:

* @Blocking
* ```io.sinistral.proteus.annotations.Blocking```
* Forces the request processing to block.

* @Debug
* ```io.sinistral.proteus.annotations.Debug```
* Dumps the request and response details to the log.

* @Chain
* ```io.sinistral.proteus.annotations.Chain```
* Wraps the endpoint handler in the provided array of ```io.undertow.server.HttpHandler``` classes.

## Return Types

Expand Down Expand Up @@ -185,22 +197,6 @@ public ServerResponse<Map<String,Object>> complexParameters(
}
```

Annotations
-------------

Proteus has three built in annotations:

* @Blocking
* ```io.sinistral.proteus.annotations.Blocking```
* Forces the request processing to block.

* @Debug
* ```io.sinistral.proteus.annotations.Debug```
* Dumps the request and response details to the log.

* @Chain
* ```io.sinistral.proteus.annotations.Chain```
* Wraps the endpoint handler in the provided array of ```io.undertow.server.HttpHandler``` classes.

Services
-------------
Expand Down

0 comments on commit d06d3e2

Please sign in to comment.