5Parses a [`++purl`]() `pul` to a [`++tape`]().
20 ++ earn :: purl to tape
23 :(weld (head p.pul) "/" (body q.pul) (tail r.pul))
29 ~zod/main=> (earn [| ~ [%| .127.0.0.1]] [~ ~] ~)
31 ~zod/main=> (earn [| ~ `/com/google/www] [~ ~] ~)
32 "http://www.google.com/"
33 ~zod/main=> (earn [& ~ `/com/google/www] [~ ~] ~)
34 "https://www.google.com/"
35 ~zod/main=> (earn [& `200 `/com/google/www] [~ ~] ~)
36 "https://www.google.com:200/"
37 ~zod/main=> (earn [& `200 `/com/google/www] [~ /search] ~)
38 "https://www.google.com:200/search"
39 ~zod/main=> (earn [& ~ `/com/google/www] [`%html /search] ~)
40 "https://www.google.com/search"
41 ~zod/main=> (earn [& ~ `/com/google/www] [~ /search] [%q 'urbit'] ~)
42 "https://www.google.com/search?q=urbit"
43 ~zod/main=> (earn [& ~ `/com/google/www] [~ /search] [%q 'urbit escaping?'] ~)
44 "https://www.google.com/search?q=urbit%20escaping%3F"
50Renders URL path `pok` as a [`++tape`]().
55`pok` is a [`++pork`]().
71 ?~(p.pok seg (welp seg '.' (trip u.p.pok)))
72 (welp seg '/' $(q.pok t.q.pok))
78 ~zod/main=> (body:earn ~ /foo/mol/lok)
80 ~zod/main=> (body:earn `%htm /foo/mol/lok)
82 ~zod/main=> (body:earn `%htm /)
89Renders a `++hart`, usually the beginning of a URL, as the [`++tape`]()
109 ?:(&(p.har !=([& /localhost] r.har)) "https://" "http://")
112 | (trip (rsh 3 1 (scot %if p.r.har)))
113 & =+ rit=(flop p.r.har)
115 ?~(rit ~ (weld (trip i.rit) ?~(t.rit "" `tape`['.' $(rit t.rit)])))
118 ?~(q.har ~ `tape`[':' (trip (rsh 3 2 (scot %ui u.q.har)))])
125 ~zod/main=> (head:earn | ~ %| .127.0.0.1)
127 ~zod/main=> (head:earn & ~ %| .127.0.0.1)
129 ~zod/main=> (head:earn & [~ 8.080] %| .127.0.0.1)
130 "https://127.0.0.1:8080"
131 ~zod/main=> (head:earn & [~ 8.080] %& /com/google/www)
132 "https://www.google.com:8080"
138Renders a [`++quay`](), a query string in hoon, to the [`++tape`]() of a
139traditional query string.
162 (urle (trip p.i.kay))
164 (urle (trip q.i.kay))
165 ?~(t.kay ~ `tape`['&' $(kay t.kay)])
173 ~zod/main=> (tail:earn ~)
175 ~zod/main=> (tail:earn [%ask 'bid'] ~)
177 ~zod/main=> (tail:earn [%ask 'bid'] [%make 'well'] ~)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list