org.http4s.Uri$.Path$
See thePath companion class
object Path
Attributes
Members list
Type members
Classlikes
object SegmentEncoder
Attributes
- Companion
- trait
- Source
- Uri.scala
- Supertypes
- Self type
-
SegmentEncoder.type
trait SegmentEncoder[A] extends Serializable
Attributes
Value members
Concrete methods
This constructor allows you to construct the path directly. Each path segment needs to be encoded for it to be used here.
This constructor allows you to construct the path directly. Each path segment needs to be encoded for it to be used here.
Value parameters
- absolute
-
if the path is absolute. I.E starts with a "/"
- endsWithSlash
-
if the path is a "directory", ends with a "/"
- segments
-
the segments that this path consists of. MUST be Urlencoded.
Attributes
- Returns
-
a Uri.Path that can be used in Uri, or by itself.
- Source
- Uri.scala
def empty case"/"=> Root casepth=> valabsolute:Boolean=pth.startsWith("/") valrelative:String=if(absolute)pth.substring(1)elsepth Path.apply(segments=refArrayOps[String](relative.split("/")).foldLeft[Vector[Segment]](Vector.empty[Segment])(((path:Vector[Segment],segment:String)=>path.:+[Segment](Segment.encoded(segment)))),absolute=absolute,endsWithSlash=relative.endsWith("/")) }" t="n"class="documentableName ">unsafeFromString(fromPath: String): Path
Attributes
- Source
- Uri.scala
Deprecated methods
Attributes
- Deprecated
-
[Since version 0.22.0-M6]
Use unsafeFromString instead - Source
- Uri.scala
In this article