Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/finagle/finch
Browse files Browse the repository at this point in the history
  • Loading branch information
vkostyukov committed Jul 29, 2014
2 parents 8dc8f16 + 4a9d146 commit 80f5ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object TurnModelIntoJson extends Facet[HttpRequest, Any, JsonResponse] {
}
```

**Step 5:** Define endpoints using facets for data transformation:
**Step 5:** Define endpoints using filters/facets for data transformation:
```scala
import io.finch._
import com.twitter.finagle.http.Method
Expand Down Expand Up @@ -258,7 +258,7 @@ val c = Respond(Status.Created)(JsonObject("id" -> 42)) // 'application/json' re
HTTP headers may be added to respond instance with `withHeaders()` method:

```scala
val ok: Respond = Ok.withHeaders("Some-Header-A" -> "a", "Some-Header-B", "b")
val ok: Respond = Ok.withHeaders("Some-Header-A" -> "a", "Some-Header-B" -> "b")
val rep: HttpResponse = ok(JsonObject("a" -> 10))
```

Expand Down

0 comments on commit 80f5ff1

Please sign in to comment.