[][src]Crate slimweb

Slim HTTP 1.1 client/server library.

I felt compelled (or inspired if you will) to write this library after reading this article: https://medium.com/@shnatsel/smoke-testing-rust-http-clients-b8f2ee5db4e6

More on the controversial side of the Rust community, it seemed quite interesting how such eloquent libraries could be riddled down to such minor details that could cause major problems. So, I'm throwing another into the mix that will probably hit that same point.

No async functionality. Decisively using deadlines for DoS prevention (didn't want to deal with leaky thread racing). Using Rustls for SSL/TLS encryption. Using flate2 for compression/decompression (GZip only).

Macros

implbufread

Generic impl BufRead macro.

implgets

Impl get_ref and get_mut.

implread

Generic impl Read macro.

implwrite

Generic impl Write macro.

Structs

GeneralInfo

General response info.

Enums

Error

Represents errors that can (and probably will) occur throughout this library.

StatusInfo

General status info.

Functions

connect

Create a CONNECT Request.

delete

Create a DELETE Request.

get

Create a GET Request.

head

Create a HEAD Request.

options

Create a OPTIONS Request.

patch

Create a PATCH Request.

post

Create a POST Request.

put

Create a PUT Request.

trace

Create a TRACE Request.