Skip to content

Commit

Permalink
src: add native URL class
Browse files Browse the repository at this point in the history
Adds a URL native class for use within the node.js c/c++
code. This is primarily intended to be used by the eventual
ES6 modules implementation but can be used generally wherever
URL parsing within the c/c++ may be necessary.

```c
URL url1("http://example.org");
URL url2("foo", "http://example.org/bar");
URL url3("baz", &url2);
```

While we're at it, reduce reliance on macros to simplify impl.

PR-URL: #11801
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
jasnell authored and MylesBorins committed Mar 28, 2017
1 parent 96ad336 commit d0c2d67
Show file tree
Hide file tree
Showing 2 changed files with 365 additions and 284 deletions.
Loading

0 comments on commit d0c2d67

Please sign in to comment.