Skip to content

Commit 1084b91

Browse files
committed
Bump to 0.7.1
1 parent af823b3 commit 1084b91

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit"
4-
version = "0.7.0"
4+
version = "0.7.1"
55
authors = ["[email protected]",
66
"Alex Crichton <[email protected]>"]
77
description = "Common HTTP server interface"

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#![feature(core, io, alloc, net)]
1+
#![feature(core, alloc)]
22

33
extern crate semver;
44

55
use std::io::prelude::*;
66
use std::collections::HashMap;
77
use std::error::Error;
8-
use std::net::IpAddr;
8+
use std::net::SocketAddr;
99

1010
pub use self::typemap::TypeMap;
1111
mod typemap;
@@ -19,7 +19,7 @@ pub enum Scheme {
1919
#[derive(PartialEq, Debug, Clone, Copy)]
2020
pub enum Host<'a> {
2121
Name(&'a str),
22-
Ip(IpAddr)
22+
Socket(SocketAddr)
2323
}
2424

2525
#[derive(PartialEq, Hash, Eq, Debug, Clone, Copy)]
@@ -73,7 +73,7 @@ pub trait Request {
7373

7474
/// The remote IP address of the client or the last proxy that
7575
/// sent the request.
76-
fn remote_ip(&self) -> IpAddr;
76+
fn remote_addr(&self) -> SocketAddr;
7777

7878
/// The byte-size of the body, if any
7979
fn content_length(&self) -> Option<u64>;

0 commit comments

Comments
 (0)