From 54d1886283056db6c614afed8995ee94f15d5b0d Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 30 Jun 2017 17:16:54 +0200 Subject: Readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 719ba43..9a98f87 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The HTTP client for Scala that you always wanted -``` +```scala val state = "closed" val request = sttp.get(uri"https://api.github.com/repos/adamw/elasticmq/issues?state=$state") @@ -31,7 +31,7 @@ which contain common cookies/headers/options, which can later be specialized usi First, make sure to import: -``` +```scala import com.softwaremill.sttp._ ``` @@ -39,7 +39,7 @@ To send requests, you will also need a backend. A default, synchronous backend b is provided out-of-the box. An implicit value needs to be in scope to invoke `send()` (however it's possible to create requests without any implicit backend in scope): -``` +```scala implicit val handler = HttpConnectionSttpHandler ``` @@ -60,10 +60,10 @@ a method nor an URI. Both of these fields will be set to `None` (the `Option` su * the encoding for `String`s defaults to `utf-8`. * unless explicitly specified, the `Content-Type` defaults to: -** `text/plain` for text -** `application/x-www-form-urlencoded` for form data -** `multipart/form-data` for multipart form data -** `application/octet-stream` for everything else (binary) + * `text/plain` for text + * `application/x-www-form-urlencoded` for form data + * `multipart/form-data` for multipart form data + * `application/octet-stream` for everything else (binary) ## Other Scala HTTP clients -- cgit v1.2.3