org.http4s.Uri$.Path$
See thePath companion class
object Path
Attributes
Members list
Concise view
Type members
Classlikes
object SegmentEncoder
Attributes
- Companion:
- trait
- Source:
- Uri.scala
- Graph
- Supertypes
- Self type
- SegmentEncoder.type
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.
Attributes
- 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.
- 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