Ponylang package to build client and server applications for the HTTP protocol.
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.
It will be removed from the stdlib with one of the next minor releases as a result of RFC 55. 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.
- Add
http
to your build dependencies using pony-stable:
stable add github ponylang/http
- 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