From 71f6a1eeee412045cc08ce8894194573362cb8f0 Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 31 Aug 2017 14:32:01 +0200 Subject: Response.body is now an Either[String, T], to handle cases when the status code isn't 2xx --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4670ea5..603b99d 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ val response = request.send() // response.header(...): Option[String] println(response.header("Content-Length")) -// response.body: by default read into a String -println(response.body) +// response.unsafeBody: by default read into a String +println(response.unsafeBody) ``` ## Goals of the project -- cgit v1.2.3