Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created August 15, 2013 07:56
Show Gist options
  • Save alexcrichton/6239056 to your computer and use it in GitHub Desktop.
Save alexcrichton/6239056 to your computer and use it in GitHub Desktop.
use std::rt::io;
struct HttpResponse<'self> {
out: &'self mut io::Writer,
}
fn write_http_header(_: &mut io::Writer) {}
impl<'self> HttpResponse<'self> {
fn respond(&mut self) {
write_http_header(&mut *self.out);
}
}
fn main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment