-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external URI parser #12
Comments
@ikod I am putting together a testsuite to test various uri backends: https://github.com/GilesBathgate/uri |
I commited ftp code and unittests, will look on uri lib. |
What is the best practice for using modules from alpha libraries? Is it ok if I just place it in my source tree? |
ping @wilzbach |
Why not? |
@ikod I would like to say that I am not getting good results from the alphaPhobos library, I am trying vibe.d implementation instead. |
To clarify you mean using git submodules? You can also tell dub to use master of its already released there.. |
Never tried git submodules, but they should work, thanks for idea. |
@ikod Here are some initial results of the various Uri parsing libraries.
The test was just a simple one run in a loop 10,000 times auto u = new Uri("http://user:pass@host:99/foo/bar?baz#qux");
assert(u.scheme == "http");
assert(u.username == "user");
assert(u.password == "pass");
assert(u.host == "host");
assert(u.port == 99);
assert(u.absolutePath == "/foo/bar");
assert(u.query == "baz");
assert(u.fragment == "qux"); |
@ikod Here is another test run:
uriparse.d is my attempt at creating a new uriparsing library. It will probably only currently parse the most basic of urls, but its still the fastest ;) |
@GilesBathgate Finally pushed http and ftp requests joined under single structure. |
@ikod, @GilesBathgate |
Giles Bathgate:
This uri abstraction might be a useful sub component of these http libs: https://github.com/rikkimax/alphaPhobos/blob/master/source/std/experimental/uri.d
The text was updated successfully, but these errors were encountered: