All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.client4.json.package.scala Maven / Gradle / Ivy

The newest version!
package sttp.client4

package object json {
  implicit class RichResponseAs[T](ra: ResponseAs[T]) {
    def showAsJson: ResponseAs[T] = ra.showAs("either(as string, as json)")
    def showAsJsonAlways: ResponseAs[T] = ra.showAs("as json")
    def showAsJsonEither: ResponseAs[T] = ra.showAs("either(as json, as json)")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy