Crate http

Source
Expand description

Http utils

This crate contains utilities to work with the HTTP protocol

§Example

use http::prelude::*;
use std::net::TcpStream;

let req = HttpRequest::builder()
            .method(HttpMethod::GET)
            .url("/")
            .build().unwrap();
let tcp = TcpStream::connect("127.0.0.1:80").unwrap();
req.send_to(HttpStream::from(tcp)).unwrap();

Modules§

encoding
prelude
request
response

Macros§

err

Type Aliases§

Result