Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Mar 18, 2019
1 parent 2c76143 commit f22262f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/server/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ import tapir.server.akkahttp._
val r: Route = myEndpoint.toRoute((authFn _).composeRight(logicFn _))
```

Writing down the types, here are the generic signatures when using `composeRight`:

```scala
f1: T => Future[Either[E, U]]
f2: (U, A1, A2, ...) => Future[Either[E, O]]
(f1 _).composeRight(f2): (T, A1, A2, ...) => Future[Either[E, O]]
```

## Exception handling

There's no exception handling built into tapir. However, tapir contains a more general error handling mechanism, as the
Expand Down

0 comments on commit f22262f

Please sign in to comment.