Skip to content

Instantly share code, notes, and snippets.

@AlexNisnevich
AlexNisnevich / request_example.rs
Created October 7, 2014 02:07
JSON requests with rust-http
extern crate serialize;
extern crate http;
extern crate url;
use std::string::String;
use serialize::json;
use serialize::json::Json;
use serialize::json::ToJson;
use http::client::RequestWriter;
use http::headers::content_type::MediaType;