Skip to content

Releases: phpgt/Http

Http status code exceptions

22 May 22:15
064b495

Choose a tag to compare

This release includes many exception classes: one for every HTTP status code. This will allow applications that utilise this repository as a dependency to throw and catch individual status codes by name, improving the execution model.

UriInterface compatibility for REQUEST_URI

28 Mar 15:53
85f86e2

Choose a tag to compare

The $_SERVER["REQUEST_URI"] value is now mapped with greater compatibility to Server::getRequestUri() by breaking down each parsed part of the URI, meaning you can now get access to the scheme, host, port, path and query string parts individually.

Named HTTP status codes

28 Nov 12:06
394ecdd

Choose a tag to compare

In the StatusCode class, all the status codes within the REASON_PHRASE constant have been extracted to named constants, allowing you to refer to status codes by name, such as StatusCode::OK.

Uri helper methods

11 Nov 13:33

Choose a tag to compare

Within the ServerInfo class, some new helper methods have been included within this release. These methods are intended to help remove repetition when working with full URIs, including the scheme and host parts.

New functions:

  • getFullUri()
  • getServerHost()
  • getHttpHost()

Case-insensitive headers

21 Oct 13:29

Choose a tag to compare

This minor release brings case-insensitivity to all use of headers. This only makes a difference when working with headers set from the $_SERVER["HTTP_*"] variables, which include uppercase, underscore-separated values.

Stable release

19 Jun 19:41

Choose a tag to compare

PSR-7 is a far reaching set of interfaces, but their implementation within this repository has been satisfactory for PHP.Gt development for a number of months, so a stable release is being made to allow for PHP.Gt/WebEngine v3 release.

Stream improvements

10 Jun 14:41
12cf4c5

Choose a tag to compare

Stream improvements Pre-release
Pre-release

Functionality has been slightly modified after introducing unit tests for working with Streams in the following ways:

  • String representation of Stream objects
  • Detaching a stream's resource object mid-use
  • Tell, Eof, Seek methods
  • Writing to Streams sequentially
  • Accessing Stream metadata
  • Getting stream contents in one operation

ServerRequest

27 Jan 12:47

Choose a tag to compare

ServerRequest Pre-release
Pre-release

The ServerRequest object has the most functionality as it represents the main object in use in a server-side Http library. This release marks the commit where the ServerRequest object has reached 100% test coverage. There have been many tweaks to achieve this along the way, and a few bugs found too.

Still to test are three objects: Message, Stream and UriResolver.

Request/Response objects

27 Jan 12:45

Choose a tag to compare

Pre-release

The Request and Response objects are arguably the most important in this repository. They contain references to many other objects within the repository and in the process of fully unit testing them, have reached 100% coverage on the Header, Uri and ParameterType objects.

Unit tests and fixes

27 Jan 12:43

Choose a tag to compare

Unit tests and fixes Pre-release
Pre-release

This release consists mainly of unit tests. The intention is to get the codebase to 100% test coverage before the v3 WebEngine release is considered stable.

There are no new features planned to be implemented in this repository before v1 release, but the process of chasing 100% coverage always finds missing functionality or bugs.