Max Ehsan
45e93a6740
Update README.md
3 years ago
Masroor Ehsan
b7abb4945f
check for valid json input
3 years ago
Masroor Ehsan
132657ab58
updated PHP requirements
4 years ago
Masroor Ehsan
8b513516cb
updated readme
4 years ago
Mike Cao
aa55b97093
Merge pull request #445 from saschanos/dev-json-check
...
check for valid json input
4 years ago
Sascha Nos
f8dd98523c
check for valid json input
4 years ago
Masroor Ehsan
a2c5dd5ede
minor refactorings
4 years ago
Masroor Ehsan
5b8e743e3d
refactorings
4 years ago
Masroor Ehsan
ff852c19e3
updated phpunit and tests
4 years ago
Masroor Ehsan
d3feb77ce9
fixed parameter types
4 years ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
Mike Cao
6e9768503a
Merge pull request #434 from ThomasOrlita/patch-1
...
Add info about regex groups with named parameters
4 years ago
Mike Cao
ca155d5394
Bump version.
4 years ago
Thomas Orlita
6f9cd0c195
Add info about regex groups with named parameters
...
I think this should be mentioned in the docs, see #277 and #324
4 years ago
Mike Cao
bc5e03ca59
Merge pull request #395 from merkuriy/JsonSerializableCollection
...
Added JsonSerializable for util/Collection
4 years ago
Mike Cao
b6429d2a3c
Merge pull request #433 from juneszh/master
...
add content_length configuration
4 years ago
juneszh
ed9bbed287
add content_length configuration
4 years ago
juneszh
c649964d95
add content_length configuration
4 years ago
Mike Cao
b3120f8db2
Merge pull request #409 from pluveto/patch-1
...
Trim url
5 years ago
Mike Cao
b4842fc021
Merge pull request #405 from digital-codes/master
...
Enable DELETE method to receive request body
5 years ago
pluveto
ddb806a604
Trim url pattern
...
This helps support whitespaces between METHOD and URL:
```php
Flight::route('GET /auth/nonce', array($apiAuth, 'getNonce')); // `GET[space][space]/auth/nonce`
Flight::route('POST /auth/login/email', array($apiAuth, 'loginByEmail'));
```
5 years ago
Andreas Kugel
0145f629d3
Enable DELETE method to receive request body
...
Delete for CRUD needs request data in body
5 years ago
Mike Cao
e459a54017
Bump version.
6 years ago
Mike Cao
da8eaefc63
Merge pull request #398 from hlidotbe/feature/request-host
...
Add host to request
6 years ago
Mike Cao
d7c3489ba2
Merge pull request #397 from hlidotbe/fix/request-scheme
...
Fix request scheme
6 years ago
Hugues Lismonde
b4c9c42b00
Add host to request
...
The requested host can be useful to build an url or route request based
on which host was used.
6 years ago
Hugues Lismonde
e0dfb7406d
Fix request schem
...
As mentionned in #396 , the request scheme was not as documented,
returning SERVER_PROTOCOL instead.
The `getScheme` function is now used to handle common cases (HTTPS,
FORWATED_PROTO, ...).
`request->secure` is also based on the scheme now as `$_SERVER['HTTPS']`
is unreliable for this purpose.
6 years ago
Uriy @MerkUriy Efremochkin
ceb1b5bb89
Added JsonSerializable for util/Collection and added LegacyJsonSerializable for PHP <5.4.0.
...
Closed mikecao/flight#394 .
6 years ago
Mike Cao
c57ee8cb8d
Merge pull request #384 from spytheman/master
...
Allow easy routing of URLs containing Cyrillic letters.
6 years ago
Delyan Angelov
0daa3f81b5
Allow cyrillic letters in the routes, by matching the result of urldecode over the URL .
6 years ago
Delyan Angelov
406be00436
Add a failing test for routing URLs containing Cyrillic letters.
6 years ago
Mike Cao
7d5970f761
Bump version.
6 years ago
Mike Cao
32f7c8dbe4
Merge pull request #363 from alexshadie/master
...
Fixed exception catching (php < 7)
7 years ago
Alex Shadie
e25f023d43
Fixed exception catching (php < 7)
7 years ago
Mike Cao
e7feb1cb2d
Merge pull request #360 from alexshadie/master
...
Some improvements for PHPdoc
7 years ago
Alex Shadie
d3067e5eae
Some improvements for PHPdoc
7 years ago
Mike Cao
db2c5c77e1
Bump version
7 years ago
Mike Cao
3380846d7c
Merge pull request #355 from jqs/master
...
Removed extraneous ->write($url) call on redirect that was causing Sa…
7 years ago
jqs
ccf4858573
Removed extraneous ->write($url) call on redirect that was causing Safari to bugger out qwhen using HTTP2, which it tends to handle more strictly.
...
Notes:
The line above writes the URL to redirect to for the 303 then that line writes it again.
The result is a multi-line http header which causes safari to freak out when in http2 mode.
https://blog.christopherburg.com/2017/10/18/safari-11-multiline-http-headers-and-nsposixerrordomain100/
blog.christopherburg.com
Safari 11, Multiline HTTP Headers, and NSPOSIXErrorDomain:100. at A Geek With Guns
Chronicling the depravities of the State
7 years ago
Mike Cao
25f16079c6
Merge pull request #349 from merkuriy/master
...
Small fix for Doc and Code style
7 years ago
Uriy Efremochkin
cc72d9a081
Code style fix
7 years ago
Uriy Efremochkin
4841466656
Fix for Doc
7 years ago
Mike Cao
c6485b710e
Merge pull request #342 from kouts/patch-2
...
Update Engine.php
7 years ago
kouts
98c105d009
Update Engine.php
...
Fixed halt method so that it stops execution.
7 years ago
Mike Cao
b6ded4f288
Merge pull request #340 from kouts/patch-1
...
Halt method should clear response before sending.
7 years ago
kouts
53f0c1671d
Update Engine.php
...
Add ```clear``` to the halt method in order to work as expected with the latest changes
7 years ago
Mike Cao
e146b8c0dd
Prevent response from sending more than once.
7 years ago
Mike Cao
5b4916d4e3
Fix conflict with external error handlers.
7 years ago
Mike Cao
7ae2011723
Sending response should not exit to allow pre-stop filters.
7 years ago
Mike Cao
b781e63d08
Fix test.
7 years ago