Показывать страницы в одной папке в Jekyll?

Использование привязок. Вставьте это в свой Cargo.toml:

[dependencies.curl]
git = "https://github.com/carllerche/curl-rust"

... и это в src/main.rs:

extern crate curl;

use curl::http;

fn main(){
  let resp = http::handle()
    .post("http://localhost:3000/login", "username=dude&password=sikrit")
    .exec().unwrap();

  println!("code={}; headers={}; body={}",
    resp.get_code(), resp.get_headers(), resp.get_body());    

}
7
задан songyy 22 June 2013 в 12:52
поделиться