Releases: softwaremill/sttp
Releases · softwaremill/sttp
sttp client v2.0.0-RC1
Major changes
- renamed the group id from
com.softwaremill.sttp
tocom.softwaremill.sttp.client
(organization) - renamed the main package from
com.softwaremill.sttp
tosttp.client
(see #288) - renamed initial request from
sttp
tobasicRequest
- reworked response-as (see #284)
asString
now is anEither[String, String]
not aString
(no assumptions as to the error type)- all json integrations return an
Either[ResponseError, B]
body
- added websocket support
See also: sttp2: an overview of proposed changes and Websockets in Scala using sttp
Minor changes
- removed Request.parseResponseIf
- removed Response.unsafeBody
- redirect loops now throw an exception
- reduce import conflicts with cats:
- rename Id to Identity (to make working w/ cats easier)
- move MonadError to another package
- cats, zio, monix, scalaz backends now return results wrapped in IO/Task when creating a backend
- backend.close returns a
F[Unit]
- watch out if you are using lazy wrappers! StatusCode
is a proper typeHeader
is a proper typeMultipart
renamed to Part and generifiedasFile(overwrite)
- removed theoverwire
parameterQueryFragment(Encoding)
inUri
renamed toQuerySegment(Encoding)
Uri.parse
,Uri.apply
removed, replaced withsafeApply
v1.6.0
This release contains three major changes:
-
some modules are now published for 2.13:
core
(jvm & js),akka-http-backend
,scalaz
,async-http-client-future-backend
,async-http-client-scalaz-backend
,okhttp-backend
,json-common
,circe
,json4s
,spray-json
,play-json
,brave-backend
,prometheus-backend
-
one of the overload of the
RequestT.cookies
method now accepts aIterable[Cookie]
instead of aSeq[Cookie]
. -
the
async-http-client-cats
backend now requires an additionalContextShift[F]
. This is needed to shift to another threadpool after sending a request (see #217). Similarly, the-monix
backends now shift to the default threadpool aftersend()
.
v1.3.0-RC2
- scala-native backend by @pcejrowski, #73
- quick mode for REPLs by @lihaoyi, #125
- & of course bug fixes
v1.2.0-RC1
- Scala.JS support by @guymers, see the
FetchBackend
andFetchMonixBackend
: http://sttp.readthedocs.io/en/latest/backends/javascript/fetch.html - in case of an error response, it's not deserialized to a
String
by default. SeeResponse.rawErrorBody
andResponse.body
- to include a file in a multipart body, use the
multipartFile
builder method instead ofmultipart
Release 0.0.1
v0.0.1 New reformatter