about summary refs log tree commit diff
path: root/src/libextra/url.rs
AgeCommit message (Collapse)AuthorLines
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-1277/+0
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-03-12Use generic impls for `Hash`Erick Tryzelaar-7/+7
2014-02-24Remove std::from_str::FromStr from the preludeBrendan Zabarauskas-0/+1
2014-02-24Remove deriving(ToStr)Alex Crichton-9/+9
This has been superseded by deriving(Show). cc #9806
2014-02-23Remove all ToStr impls, add Show implsAlex Crichton-78/+71
This commit changes the ToStr trait to: impl<T: fmt::Show> ToStr for T { fn to_str(&self) -> ~str { format!("{}", *self) } } The ToStr trait has been on the chopping block for quite awhile now, and this is the final nail in its coffin. The trait and the corresponding method are not being removed as part of this commit, but rather any implementations of the `ToStr` trait are being forbidden because of the generic impl. The new way to get the `to_str()` method to work is to implement `fmt::Show`. Formatting into a `&mut Writer` (as `format!` does) is much more efficient than `ToStr` when building up large strings. The `ToStr` trait forces many intermediate allocations to be made while the `fmt::Show` trait allows incremental buildup in the same heap allocated buffer. Additionally, the `fmt::Show` trait is much more extensible in terms of interoperation with other `Writer` instances and in more situations. By design the `ToStr` trait requires at least one allocation whereas the `fmt::Show` trait does not require any allocations. Closes #8242 Closes #9806
2014-02-24Transition to new `Hash`, removing IterBytes and std::to_bytes.Huon Wilson-7/+7
2014-02-23Move std::{trie, hashmap} to libcollectionsAlex Crichton-2/+2
These two containers are indeed collections, so their place is in libcollections, not in libstd. There will always be a hash map as part of the standard distribution of Rust, but by moving it out of the standard library it makes libstd that much more portable to more platforms and environments. This conveniently also removes the stuttering of 'std::hashmap::HashMap', although 'collections::HashMap' is only one character shorter.
2014-02-19auto merge of #12231 : wycats/rust/url_path_parse, r=alexcrichtonbors-0/+115
It is sometimes useful to parse just the path portion of a URL (path, query string and fragment) rather than the entire URL. In theory I could have made Url embed a Path, but that would be a breaking change and I assume that Servo uses this API. I would be happy to update the PR to embed Path in Url if that's what people wanted.
2014-02-14Add function doc comments for extra::url::*Dave Hodder-15/+46
2014-02-12Adds support for working with URL PathsYehuda Katz-0/+115
It is sometimes useful to parse just the path portion of a URL (path, query string and fragment) rather than the entire URL.
2014-02-03extra: Remove io_error usageAlex Crichton-13/+13
2014-01-26Removed all instances of XXX in preparation for relaxing of FIXME ruleSalem Talha-2/+2
2014-01-17Tweak the interface of std::ioAlex Crichton-2/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-1/+1
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2013-12-23extra: Fix all code examplesAlex Crichton-1/+5
2013-12-08Remove dead codesKiet Tran-10/+0
2013-12-01Add struct and type doc comments for extra::url::*Dave Hodder-6/+20
Updated doc comments further, following suggestions from huonw in PR #10752.
2013-12-01Add struct and type doc comments for extra::url::*Dave Hodder-0/+14
2013-11-28Register new snapshotsAlex Crichton-5/+5
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-4/+4
2013-11-17Add doc comment for extra::url::query_to_strDave Hodder-0/+10
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-07Add ~ to the list of allowable URL characters.Eric Holk-4/+4
2013-10-24Another round of test fixes and merge conflictsAlex Crichton-2/+2
2013-10-24Remove even more of std::ioAlex Crichton-135/+159
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-19Fix extra::url::to_str to include the port.Chris Morgan-1/+11
Fixes #9451. Fixes chris-morgan/rust-http#16.
2013-10-01Migrate users of 'loop' to 'continue'Alex Crichton-4/+4
Closes #9467
2013-09-30extra: Remove usage of fmt!Alex Crichton-11/+11
2013-09-25Some struct visibility fixesSteven Fackler-2/+2
2013-09-20Uncomment a test. Fixes #4449.Huon Wilson-6/+2
2013-09-04stop treating char as an integer typeDaniel Micay-5/+5
Closes #7609
2013-08-19Fix some parsing errors in extra::urlKevin Ballard-28/+33
Fixes issue #8612.
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-1/+1
Closes #5495
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-2/+2
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-7/+7
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-7/+7
2013-08-01make `in` and `foreach` get treated as keywordsDaniel Micay-11/+11
2013-07-22extra: Add url moduleBrian Anderson-0/+1071
Used to be under extra::net, which no longer exists