Sha256: 389ecb78f1152309c70ffd3bec84f29a70a1e4ee50894d31ce13a457170ca45b

Contents?: true

Size: 806 Bytes

Versions: 6

Compression:

Stored size: 806 Bytes

Contents

URI OBJECT TYPE
  NAME: uri
  SHORTCUT: url

  DESCRIPTION
    A URI or URL.

  CHILDREN
    None

  MESSAGES
    open - open the URL in the default browser
    get_scheme - get the URI scheme; example:  http
    get_host - get the URI host; example:  google.com
    get_path - get the URI resource path; example:  /post
    get_query - get the URI query parameterse; example:  id=121
    get_fragment - get the URI fragment

  EXAMPLE

    url [can] :
      on_load [script] :
        tell url.u to get_scheme
        show "scheme: " + it

        tell url.u to get_host
        show "host: " + it

        tell url.u to get_path
        show "path: " + it

        show "opening URL: " + url.u
        tell url.u to open
      u [uri] : https://my.url/path/1234

  SEE ALSO
    http_get, http_post, json

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gloo-0.7.5 lib/gloo/help/objs/web/uri.txt
gloo-0.7.4 lib/gloo/help/objs/web/uri.txt
gloo-0.7.3 lib/gloo/help/objs/web/uri.txt
gloo-0.7.2 lib/gloo/help/objs/web/uri.txt
gloo-0.7.1 lib/gloo/help/objs/web/uri.txt
gloo-0.7.0 lib/gloo/help/objs/web/uri.txt