2017 © Pedro Peláez
 

library http

A set of interfaces and standard implementations to allow sweet sweet interoperability.

image

room11/http

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  • Thursday, April 7, 2016
  • by Danack
  • Repository
  • 2 Watchers
  • 2 Stars
  • 754 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

HTTP interoperability interfaces and standard implementations

A small set of interfaces to allow people to re-use libaries across projects., (*1)

The interfaces

  • Request, (*2)

  • Response, (*3)

  • Body, (*4)

Guide for creating Body implementations

Contrary to standard coding practices, it is preferable for implementations of the body interface that all the work that is done in the constructor. This allows any problems to be detected before the response starts to be sent, and so avoid any possible confusion about which headers have been sent., (*5)

For example, the FileBody implementation opens the file to be sent in the constructor and holds the FileHandle open until the FileBody is sent. This ensures that any errors in opening the file occur inside the application code, rather than the framework code., (*6)

Similarly the JsonBody does the json_encode'ing inside the constructor, so that any exception are, again, reported inside the application code creating the JsonBody, rather than in the framework code when it sends the JsonBody., (*7)

Install git pre-commit hook

Please install the git pre-commit in the ./test/git_hooks directory to have the code style checks done before committing. Although they will get picked up by the CI tool, it is a courtesy to other developers to avoid committing broken stuff., (*8)

The Versions

07/04 2016

dev-master

9999999-dev

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

07/04 2016

0.2.1

0.2.1.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

25/03 2016

0.2.0

0.2.0.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

09/02 2016

0.1.2

0.1.2.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

21/01 2016

0.1.1

0.1.1.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

18/01 2016

0.0.11

0.0.11.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

18/01 2016

0.1.0

0.1.0.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

07/01 2016

0.0.10

0.0.10.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

07/01 2016

0.0.9

0.0.9.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

07/01 2016

0.0.8

0.0.8.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

06/01 2016

0.0.7

0.0.7.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

05/01 2016

0.0.6

0.0.6.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

16/11 2015

0.0.5

0.0.5.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

31/10 2015

0.0.4

0.0.4.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

22/08 2015

0.0.3

0.0.3.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

19/08 2015

0.0.2

0.0.2.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11

19/08 2015

0.0.1

0.0.1.0

A set of interfaces and standard implementations to allow sweet sweet interoperability.

  Sources   Download

MIT

The Development Requires

http interface room11