Skip to content

Releases: sabre-io/http

2.0.0

20 May 10:19
Compare
Choose a tag to compare
  • Removed: Request::createFromPHPRequest. This is now handled by
    Sapi::getRequest.

2.0.0-alpha6

20 May 10:19
Compare
Choose a tag to compare
2.0.0-alpha6 Pre-release
Pre-release
  • Added: Asynchronous HTTP client. See examples/asyncclient.php.
  • Fixed: Issue #4: Don't escape colon (:) when it's not needed.
  • Fixed: Fixed a bug in the content negotation script.
  • Fixed: Fallback for when CURLOPT_POSTREDIR is not defined (mainly for hhvm).
  • Added: The Request and Response object now have a __toString() method that
    serializes the objects into a standard HTTP message. This is mainly for
    debugging purposes.
  • Changed: Added Response::getStatusText(). This method returns the
    human-readable HTTP status message. This part has been removed from
    Response::getStatus(), which now always returns just the status code as an
    int.
  • Changed: Response::send() is now Sapi::sendResponse($response).
  • Changed: Request::createFromPHPRequest is now Sapi::getRequest().
  • Changed: Message::getBodyAsStream and Message::getBodyAsString were added. The
    existing Message::getBody changed it's behavior, so be careful.

2.0.0-alpha5

20 May 10:20
Compare
Choose a tag to compare
2.0.0-alpha5 Pre-release
Pre-release
  • Added: HTTP Status 451 Unavailable For Legal Reasons. Fight government
    censorship!
  • Added: Ability to catch and retry http requests in the client when a curl
    error occurs.
  • Changed: Request::getPath does not return the query part of the url, so
    everything after the ? is stripped.
  • Added: a reverse proxy example.

2.0.0-alpha4

20 May 10:20
Compare
Choose a tag to compare
2.0.0-alpha4 Pre-release
Pre-release
  • Fixed: Doing a GET request with the client uses the last used HTTP method
    instead.
  • Added: HttpException
  • Added: The Client class can now automatically emit exceptions when HTTP errors
    occurred.

2.0.0-alpha3

20 May 10:20
Compare
Choose a tag to compare
2.0.0-alpha3 Pre-release
Pre-release
  • Changed: Now depends on sabre/event package.
  • Changed: setHeaders() now overwrites any existing http headers.
  • Added: getQueryParameters to RequestInterface.
  • Added: Util::negotiate.
  • Added: RequestDecorator, ResponseDecorator.
  • Added: A very simple HTTP client.
  • Added: addHeaders() to append a list of new headers.
  • Fixed: Not erroring on unknown HTTP status codes.
  • Fixed: Throwing exceptions on invalid HTTP status codes (not 3 digits).
  • Fixed: Much better README.md
  • Changed: getBody() now uses a bitfield to specify what type to return.

2.0.0-alpha2

20 May 10:21
Compare
Choose a tag to compare
2.0.0-alpha2 Pre-release
Pre-release
  • Added: Digest & AWS Authentication.
  • Added: Message::getHttpVersion and Message::setHttpVersion.
  • Added: Request::setRawServerArray, getRawServerValue.
  • Added: Request::createFromPHPRequest
  • Added: Response::send
  • Added: Request::getQueryParameters
  • Added: Utility for dealing with HTTP dates.
  • Added: Request::setPostData and Request::getPostData.
  • Added: Request::setAbsoluteUrl and Request::getAbsoluteUrl.
  • Added: URLUtil, methods for calculation relative and base urls.
  • Removed: Response::sendBody

2.0.0-alpha1

20 May 10:21
Compare
Choose a tag to compare
2.0.0-alpha1 Pre-release
Pre-release
  • Fixed: Lots of small naming improvements
  • Added: Introduction of Message, MessageInterface, Response, ResponseInterface.

Before 2.0.0, this package was built-into SabreDAV, where it first appeared in
January 2009.