Skip to content

Commit

Permalink
Update getting-started.md (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
d11-amitsingh authored and tusharmath committed Jan 28, 2022
1 parent f4a4bfc commit f4fda46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/website/docs/v1.x/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ An app can be made using any of the available constructors on `zhttp.Http`.
For handling routes, Http Domain has a `collect` method that, accepts different requests and produces responses. Pattern matching on the route is supported by the framework
The example below shows how to create routes:

```scala,
```scala
import zhttp.http._

val app = Http.collect[Request] {
Expand All @@ -37,7 +37,7 @@ val app = Http.collect[Request] {
}
```
You can create typed routes as well. The below example shows how to accept count as `Int` only.
```scala,
```scala
import zhttp.http._

val app = Http.collect[Request] {
Expand All @@ -47,7 +47,7 @@ You can create typed routes as well. The below example shows how to accept count

### Composition

HTTP app can be composed using the `++` operator. The way it works is if none of the routes matches in `a` or there is an error `a`, the control is passed to the `b` app.
HTTP app can be composed using the `++` operator. The way it works is if none of the routes matches in `a`, the control is passed to the `b` app.

```scala
import zhttp.http._
Expand Down

0 comments on commit f4fda46

Please sign in to comment.