Skip to content

Commit

Permalink
Fixed an ambiguity in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shannon -jj Behrens committed Aug 22, 2014
1 parent 332f0ef commit 168057f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/finagle.textile
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ class TimeoutFilter[Req, Rep](
}
</pre>

This example shows how you might provide authentication (via an authentication service) in order to convert a <code>Service[AuthHttpReq, HttpRep]</code> into <code>Service[HttpReq, HttpRep]</code>.
This example shows how you might provide authentication (via an authentication service). The code uses a filter to map an <code>HttpReq</code> to an <code>AuthHttpReq</code>. Afterwards, instead of the service having the type <code>Service[HttpReq, HttpRep]</code>, it now has the type <code>Service[AuthHttpReq, HttpRep]</code>. Hence, the Service now operates on an authenticated request.

<pre>
class RequireAuthentication(authService: AuthService)
Expand Down

0 comments on commit 168057f

Please sign in to comment.