Skip to content

Releases: ponylang/http

0.2.2

01 Aug 20:05
Compare
Choose a tag to compare

This release contains a bugfix and adapts to changes in ponyc 0.30, namely the exclusion of the net/ssl package from the pony standard library.

Fixed

  • Requests/Responses that were not sent as Chunked and had bodies with > 10000 bytes have been handled incorrectly. Namely the actual request/response with headers and all has never been sent to the HTTPHandler of either client or server. Only the body has been delivered and might have been mistaken as the body of another request. See #25

Changed setup

The http package now depends on https://github.com/ponylang/net-ssl and https://github.com/ponylang/regex (only for testing). And thus setup must include the following steps:

# adding dependencies
# add `net_ssl` package as dependency
stable add github ponylang/net-ssl

# make sure a compatible ssl lib is installed. See: https://github.com/ponylang/net-ssl

# only for running the http package tests
stable add github ponylang/regex

# actually add http as dependency
stable add github ponylang/http --tag 0.2.2

Release 0.2.1

15 Jun 20:51
Compare
Choose a tag to compare

This is just a small bugfix release:

  • remove default port in Host: attribute by @WoodyAtHome #18
    This issue could cause issues when using the HTTP client with HTTP servers relying on virtual servers based on the name listed in the Host header. The default port (e.g. :80) was added here and thus confusing servers.
  • fix the test setup with ponyc 0.28.1

Release 0.2.0

15 Feb 08:21
Compare
Choose a tag to compare

Changed

  • The behavior of the HTTP Parser was changed. If we have a request or response that is neither Chunked nor Streamed (body exceeds a size of 10000 bytes), then the body is delivered in the payload and can be obtained with Payload.body()?. Previously it was only received using HTTPSession._chunk (followed by HTTPSession._finish. Now the payload is only received via HTTPSession._deliver.
  • Improved Error Handling the HTTP Parser
  • Made _HTTPParser public: HTTPParser
  • Adapted to the new partial time.PosixDate.format in ponyc 0.26.0.