Add parity_multiaddr::from_websockets_url (#1113)

* Add parity_multiaddr::from_websockets_url

* Make from_websockets_url more genreic

* Oops, forgot the file

* Use the URL crate

* Add dns_and_port test

* Address review

* Add support for unix
This commit is contained in:
Pierre Krieger
2019-05-14 14:19:07 +02:00
committed by GitHub
parent c2398adf67
commit 43d9084735
3 changed files with 266 additions and 0 deletions

View File

@ -4,6 +4,7 @@ pub use multihash;
mod protocol;
mod errors;
mod from_url;
mod util;
use bytes::{Bytes, BytesMut};
@ -23,6 +24,7 @@ use std::{
str::FromStr
};
pub use self::errors::{Result, Error};
pub use self::from_url::{FromUrlErr, from_url, from_url_lossy};
pub use self::protocol::Protocol;
/// Representation of a Multiaddr.