Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/incognito/js-psr7
Designed to be as close to the PSR7 spec as reasonable.
https://github.com/incognito/js-psr7
Last synced: 17 days ago
JSON representation
Designed to be as close to the PSR7 spec as reasonable.
- Host: GitHub
- URL: https://github.com/incognito/js-psr7
- Owner: Incognito
- Created: 2016-09-17T20:31:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T21:19:59.000Z (over 8 years ago)
- Last Synced: 2024-11-30T01:49:43.237Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSR7-Requests In JavaScript
I try to implement [PSR7 Request and Response objects](http://www.php-fig.org/psr/psr-7/) as close as reasonable in
JavaScript. This is also nice for anyone who thinks about their code in terms
of passing around known and well defined objects, plus you gain symetry in how
you think about your code between systems.Modeled after tests in [guzzle/psr7](https://github.com/guzzle/psr7)
# What's ported?
My goal for a v1.0 release is
- Request
- ResponseOther aspects of the spec can be added as feature releases. PRs are welcome!
# Exceptions from canonical PSR7 spec
While implementing in JavaScript some things may work differently than in PHP.
- Obvious there are no namespaces
- There are no interface guards
- PHP "Array" needs to be swapped for a JS Object any time the keys are named.
-