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

a8.shared.UriOps.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20230212_1012_master
Show newest version
package a8.shared

import sttp.model.Uri
import sttp.model.Uri.Segment

class UriOps(val uri: Uri) extends AnyVal{

  def addPathZ(segments: ZString*): Uri =
    uri.addPath(segments.map(_.toString))

  def /(path: String): Uri =
    uri.addPath(Seq(path))

  def /(path: ZString): Uri =
    uri.addPath(Seq(path.toString))

  def /(path: Segment): Uri =
    uri.addPathSegment(path)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy