Commits
- Commit:
ab6adf11f97f5c70778cda19fdf34a15f4db3e59- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
add multipart/form-data body builder
- Commit:
e7ae8fa0ff68290bf542ce584771be3c8b27ad01- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
extend link.mk with BUILD_ENV for compile-time env vars
- Commit:
ce35e7331aa32562e8b257ee89084a3b411b5f30- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
add link.mk declaring native libs needed by consumers
- Commit:
72e29eb33e62d475f4ae2308dbd0f52aadb48511- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
add examples/post for POSTing a body to a URL
- body from argv or stdin (-), sent as application/json
- prints response status line, headers, and body
- Commit:
ebd3a89fa7acc0d377dff1cb734a8ab2282153d5- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
add HTTPS client, parsers, and chunked transfer-coding
- Method / Version / Status (is_* predicates, canonical reason phrases)
and case-insensitive ordered Headers
- parse_request and parse_response_head per RFC 2616 §5/§6, accepting
bare LF (§19.3) and obs-fold (§2.2)
- response_body_length / request_body_length covering the §4.4 matrix
- ChunkedReader / ChunkedWriter per §3.6.1 for SSE-style streaming
- RequestBuilder + top-level get/head/post/put/delete/patch/request;
send() returns a Response that implements Read, with Host,
User-Agent, Connection: close, and Content-Length auto-set
- TlsStream wraps libtls and propagates -ltls via #[link]
- percent_encode, percent_decode, url_form; RequestBuilder::form
- examples/get.rs and 34 inline tests
- Commit:
7e68a5d0527a3766aaa202e4bc72dcf36c01436b- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
add examples/ and expose VERSION const
Populate VERSION from the HTTP_VERSION environment variable which make
already passes to rustc, so downstream crates can print or log the
library version without a second source of truth.
Add examples/hello.rs, a minimal binary that links against the rlib and
prints the version. A generic Makefile pattern rule builds any file
under examples/ into build/ex-<name>, driven by the new examples target.
- Commit:
2625e3b992c23567e34d9dc1be8c364cd637a2ae- From:
- Murilo Ijanc <murilo@ijanc.org>
- Date:
initial import of http, a single-file HTTP library
