Amphp Http Client Versions Save

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.

v5.0.0-beta.12

9 months ago

v5.0.0-beta.11

1 year ago
  • Removed cloning of requests – Requests are no longer clonable and no longer cloned when passed to HttpClient and in other locations.
  • Removed cloning of request attributes – You can use any value in attributes now.
  • Following redirects creates a new request now instead of cloning the original request (therefore resetting attributes)
  • Replaced FormBody with new Form API
    • Repeated form fields are no longer sent in PHP specific encoding, i.e. appids=30&appids=20 instead of appids%5B0%5D=30&appids%5B1%5D=20 (#340) If you need the previous names, add [] to the name of your field.
  • Replaced RequestBody with new HttpContent API
    • Added BufferedContent
    • Added StreamedContent
    • Removed Body\FileBody
    • Removed Body\FormBody
    • Removed Body\JsonBody
    • Removed Body\StreamBody
    • Removed Body\StringBody
  • Fixed potential HPack concurrency issue on HTTP/2 connections

v5.0.0-beta.10

1 year ago

Updated for compatibility with amphp/[email protected]

v5.0.0-beta.9

1 year ago
  • Request now extends HttpRequest from amphp/http, gaining methods to get and set query parameters on the request instead of needing to manipulate the URI object directly.
  • Renamed header methods using the term "raw" to use "pairs" instead, e.g., getRawHeaders()getHeaderPairs(), parseRawHeaders()parseHeaderPairs()

v5.0.0-beta.8

1 year ago
  • Updated for compatibility with 2.0 of amphp/socket.
  • Changed dependency on amphp/http to 2.0.

v5.0.0-beta.7

1 year ago
  • Fixed compatibility with v2.0 of amphp/byte-stream by updating ReadableStream implementations to also implement Traversable.
  • Fixed assigning the stream ID to HTTP/2 streams to guarantee stream IDs are sent sequentially to the server
  • Fixed CancelledException being wrapped in an HttpException when a request is cancelled

v5.0.0-beta.6

1 year ago
  • Fixed HEAD requests using HTTP/2 when a Content-Length header was included in the response.
  • Fixed a memory leak in the HTTP/2 handler due to the write fiber not being destroyed.

v5.0.0-beta.5

1 year ago
  • Added compatibility with Revolt v1.x

v5.0.0-beta.4

1 year ago
  • Fixed destruct order issue in Http2Stream
  • Fixed backpressure for response body for HTTP/1.x
  • Add ResolveBaseUri interceptor

v5.0.0-beta.3

1 year ago
  • Fixed a memory leak in the HTTP/2 connection processor when reusing a connection over a long period of time
  • Removed deprecated exception classes Http2ConnectionException and Http2StreamException.