tweaks
This commit is contained in:
parent
fbd9f3ec29
commit
66039fd124
1 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ and `BaseUrl`:
|
||||||
mgr <- HTTP.newManager HTTP.defaultManagerSettings
|
mgr <- HTTP.newManager HTTP.defaultManagerSettings
|
||||||
```
|
```
|
||||||
|
|
||||||
Now we can use `servant-client` internals to convert servant's `Request`
|
Now we can use `servant-client`'s internals to convert servant's `Request`
|
||||||
to http-client's `Request`, and we can inspect it:
|
to http-client's `Request`, and we can inspect it:
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
|
@ -126,8 +126,8 @@ to http-client's `Request`, and we can inspect it:
|
||||||
putStrLn $ "Making request: " ++ show req'
|
putStrLn $ "Making request: " ++ show req'
|
||||||
```
|
```
|
||||||
|
|
||||||
`servant-client` does a bit more than `httpLbs`, but that's enough for us.
|
`servant-client`'s request does a little more, but this is good enough for
|
||||||
We get back a http-client `Response` which we can also inspect
|
our demo. We get back an http-client `Response` which we can also inspect.
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
res' <- HTTP.httpLbs req' mgr
|
res' <- HTTP.httpLbs req' mgr
|
||||||
|
|
Loading…
Reference in a new issue