Ponylang package to build client and server applications for the HTTP protocol.
http
is beta quality software that will change frequently. Expect breaking changes. That said, you should feel comfortable using it in your projects.
- Add
http
(and its transitive dependencies) to your build dependencies using pony-stable:
stable add github ponylang/http
# transitive dependencies
stable add github ponylang/net-ssl
# for testing only
stable add github ponylang/regex
- Execute
stable fetch
to fetch your dependencies. - Include this package by adding
use "http"
to your Pony sources. - Execute
stable env ponyc
to compile your application
Note: net-ssl
requires a C SSL library to be installed. Please see the net-ssl installation instructions for more information.
This is the Pony HTTP/1 library from the standard library, formerly known as net/http
. It contains both an HTTP client to issue HTTP requests against HTTP servers, and an HTTP server. It also contains a library for handling and parsing URLs.
http
was removed from the stdlib with 0.24.0 as a result of RFC 55. See also the announcement blog post.
The Pony Team decided to remove it from the stdlib as is did not meet their quality standards. Given the familiarity of most people with HTTP and thus the attention this library gets, it was considered wiser to remove it from the stdlib and give it a new home as a separate package, where it will not be subject to RFCs in order to rework its innarts.
It is considered established knowledge that this library needs a complete rework. If you would like to contribute turning this http library into the shape it should be in for representing the power of Ponylang, drop us a note on any of the issues marked as Help Wanted.