Skip to content

Instantly share code, notes, and snippets.

@saggit
saggit / eapi.rs
Created January 19, 2018 10:37 — forked from fredhsu/eapi.rs
Using Rust/Hyper to do a HTTP Post with JSON
extern crate hyper;
extern crate core;
use std::io::Read;
use hyper::Client;
use hyper::header::Connection;
use hyper::header::Basic;
use hyper::header::Headers;
use core::str::FromStr;