Git Product home page Git Product logo

rb-uri's Introduction

Introduction

This project implements a set of REALstudio object classes which together allow for easy manipulation of URIs. Strictly speaking, only the URL subset of the URI specification is supported. Other subsets like URNs are not supported.

URI instances may be converted to and from Strings as well as directly compared to other URI instances for equivalence.

Each Property of the URI class represents a member of the actual URI being parsed; they may be manipulated independently of one another and in any order.

Assigning a string value to an instance of the URI class re-parses the entire URI using the assigned string. For example:

Dim t As URI = "http://www.example.com?hello=world" 't is now "http://www.example.com?hello=world"
t = "https://www.example.net" 't is now "https://www.example.net"

Manipulating the properties individually, however, does not re-parse the URI:

Dim t As URI = "http://www.example.net/foo/bar.bat?Frell=27#Main" 'Create a URI  
t.Host = "www.example.com" 'Change the domain
ReDim t.Arguments(-1)  'Remove arguments
t.Scheme = "https" 'Change the protocol
't is now: "https://www.example.com/foo/bar.bat#Main"

rb-uri's People

Contributors

charonn0 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

simulanics

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.