url -package:gogol-vision

A library for working with URLs. A library for working with URLs.
Write an URL hyperlinked.
Encode a URL for use with the Image mark type. The URL can be encoded directly:
let axVals = Numbers [ 0.5, 1.5, 2.5 ]

dvals = dataFromColumns []
. dataColumn "x" axVals
. dataColumn "y" axVals

enc = encoding
. position X [ PName "x", PmType Quantitative ]
. position Y [ PName "y", PmType Quantitative ]
. url [ HString "wonderful-image.png" ]

imMark = mark Image [ MWidth 50, MHeight 25 ]

in toVegaLite [ dvals [], enc [], imMark ]
or by referencing a data field containing the URL values:
... dataColumn "img" (Strings [ "i1.png", "i2.png", "i4.png" ])

... url [ HName "img", HmType Nominal ]
A remote URL of the jQuery sources for version. The URL does not have a protocol prefix, so users may need to prepend either "http:" or "https:" (both work). The URL currently uses the jQuery CDN links at http://code.jquery.com/. Alternative CDN links are listed at http://jquery.com/download/#using-jquery-with-a-cdn.
URL or absolute file path
Shorthand for URL.
Relative url (to current domain) to download nar file.
Creates a value of URL with the minimum fields required to make a request. Use one of the following lenses to modify other fields as desired:
A quasiquoter to build a URL by interpolating values via ToHttpApiData. The resulting value can be any IsString type. Currently only supports single variable names being interpolated, not arbitrary Haskell expressions. Usage:
>>> [url|/foo/#{fooId}/bar|]
Fast and efficient encoding and decoding of base64url-encoded strings.
This type stores all of the components of a remote import
Valid for: ENGC; Default: none; Notes: svg, postscript, map only
Request's Url. Start constructing your Url with http or https specifying the scheme and host at the same time. Then use the (/~) and (/:) operators to grow the path one piece at a time. Every single piece of path will be url(percent)-encoded, so using (/~) and (/:) is the only way to have forward slashes between path segments. This approach makes working with dynamic path segments easy and safe. See examples below how to represent various Urls (make sure the OverloadedStrings language extension is enabled).

Examples

http "httpbin.org"
-- http://httpbin.org
https "httpbin.org"
-- https://httpbin.org
https "httpbin.org" /: "encoding" /: "utf8"
-- https://httpbin.org/encoding/utf8
https "httpbin.org" /: "foo" /: "bar/baz"
-- https://httpbin.org/foo/bar%2Fbaz
https "httpbin.org" /: "bytes" /~ (10 :: Int)
-- https://httpbin.org/bytes/10
https "юникод.рф"
-- https://%D1%8E%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4.%D1%80%D1%84