WS Client (Cequence)

version License Twitter Follow

This repository contains a simple and efficient Web Service client implemented in Scala. The client is designed to interact with RESTful web services, making it easy to send requests, handle responses, and manage errors.

🔥 New: as a part of this suite we provide json-repair library that can be used to fix common JSON syntax errors, repair malformed JSON objects and arrays.

Installation 🚀

The currently supported Scala versions are 2.12, 2.13, and 3.

To install the library, add the following dependency to your build.sbt

"io.cequence" %% "ws-client-play" % "0.8.0"

or to pom.xml (if you use maven)

<dependency>
    <groupId>io.cequence</groupId>
    <artifactId>ws-client-play_2.12</artifactId>
    <version>0.8.0</version>
</dependency>

If you only need the core abstractions without Akka dependencies:

"io.cequence" %% "ws-client-core" % "0.8.0"

Module Structure

  • ws-client-core - Core abstractions and interfaces (Akka-free)
  • ws-client-core-akka - Akka-based streaming extensions
  • ws-client-play - Play WS backend implementation (depends on core-akka)
  • ws-client-play-stream - SSE/WebSocket streaming support
  • json-repair - JSON repair utility

License ⚖️

This library is available and published as open source under the terms of the MIT License.