9 | data Part : Type where
10 | PScheme : String -> Part
11 | PAuth : String -> Part
12 | PStr : String -> Part
13 | PTill : String -> Part
14 | Capture : (0 t : Type) -> Part
17 | FromString Part where fromString = PStr
21 | 0 PartsTypes : List Part -> List Type
23 | PartsTypes (PScheme _ :: xs) = PartsTypes xs
24 | PartsTypes (PAuth _ :: xs) = PartsTypes xs
25 | PartsTypes (PStr _ :: xs) = PartsTypes xs
26 | PartsTypes (PTill _ :: xs) = PartsTypes xs
27 | PartsTypes (Capture t :: xs) = t :: PartsTypes xs
32 | record ReqPath where
37 | path : (scheme, authority : String) -> List Part -> ReqPath
38 | path s a ps = Path $
PScheme s :: PAuth a :: ps