New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASGI Support #532
Merged
+1,414
−483
Merged
ASGI Support #532
Changes from 86 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
5eaf1a1
Trash
dmanchon 853f476
requirements
dmanchon d023abb
Tests + changes to factory
masipcat 3bd33e9
hyper
dmanchon ea8c6dd
Clean a bit
dmanchon 4acf812
make hypercorn work
masipcat f59e459
Using custom Request instead of aiohttp.Request
masipcat b11dd0d
POST fixed. Molotov test
dmanchon 032f68c
Fix testclient fixture
masipcat ab8a126
Small changes
masipcat 898142b
websockets with asgi draft
dmanchon f010e3a
websocket close handling
dmanchon e2c38c6
Move requests implementations to a module
dmanchon 1827366
fix test
vangheem 55a66d8
Fixed GuillotinaRequest.query_string
masipcat 62fff01
Checkpoint. Almost all tests are green
masipcat 093e94f
Fix ws tests
dmanchon d8d6a13
Implement IRequest record method on asgi
dmanchon 27e4b2a
Deleted aiohttp request
masipcat db9b798
Fix debug headers handler
dmanchon 5ae7797
Merge branch 'master' into asgi-support
masipcat 89fafb3
Merge branch 'asgi-support' of github.com:plone/guillotina into asgi-…
masipcat 05d10ef
Fix deleted ws import
masipcat 309dce8
Fixed AsgiStreamReader bug
masipcat 2fc67b2
More fixes
masipcat 9c944af
Small fix
dmanchon df15f81
Simulate incoming request in chunks for uploads
dmanchon 826dd32
Remove starlette dep
dmanchon 29dd329
flake8
dmanchon d72d373
Almost there
masipcat 1c4d5c7
All tests green
masipcat 69adf04
Now should be all green
masipcat 7952fb0
Trying to fix failing tests in travis
masipcat 7c10a56
I hope now is fixed...
masipcat 76963a7
Small fix
masipcat 5269254
Revert "Trying to fix failing tests in travis"
masipcat 49ab931
Fix tests when runnign with DB_SCHEMA != public
masipcat c62bd3a
update to last asgi test client
dmanchon 2a0146e
Updated async-asgi-testclient
masipcat 223f083
Merge branch 'master' into asgi-support
masipcat 9eec6ec
Small changes
masipcat eee7568
Fix merge
masipcat 70a2a0f
Merge branch 'master' into asgi-support
masipcat ed3e7eb
Configured pg v10 in pytest-docker-fixtures + small change in fixtures
masipcat 99e012b
Merge branch 'master' into asgi-support
masipcat f19412a
Merge branch 'master' into asgi-support
masipcat 1c6dca7
Clean up unused methods
masipcat 841333d
Merge branch 'master' into asgi-support
masipcat 8ecb6b8
Rearrenged code and reduced code that depends on aiohttp
masipcat 3c7eb26
Merge branch 'master' into asgi-support
masipcat efe666b
Updated changelog
masipcat 4f0714e
Fix pg catalog tests
masipcat c8fe97c
Remove aiohttp dependecy for websockets
dmanchon dcba06c
Remove aiohttp dependecy for websockets
dmanchon 7aafe6f
Remove aiohttp dependecy for request
dmanchon 30b58fa
Flake8
dmanchon 8fe4e10
Replaced 'loop' fixture from 'aiohttp' for 'event_loop' from 'pytest-…
masipcat ca8be11
Merge branch 'master' into asgi-support
masipcat 2086715
Fix cockroach fixture
masipcat f6b49ba
Reduced aiohttp dependence. TODO: traversal/router and CORS
masipcat 147c233
BOOM! Merge branch 'master' into asgi-support
masipcat fbb0b76
Lot of fixes
masipcat b375401
Fixed flake8 and mypy
masipcat 133a30e
black
masipcat f7f6669
Added some tests and cleaned unused code
masipcat 22c6a8a
Mypy
masipcat 00eaacd
Asgi support: no aiohttp (#654)
vangheem 699176e
Merge branch 'master' into asgi-support
masipcat 168c560
Merge branch 'master' into asgi-support
masipcat 80f25f1
isort
masipcat f73bef1
Merge branch 'master' into asgi-support
masipcat 98f4c11
Merge branch 'master' into asgi-support
masipcat fbc08df
Merge branch 'master' into asgi-support
masipcat f1211c8
Documented how to use differents ASGI servers + small changes
masipcat 272f331
Small fixes
masipcat 307a31d
Merge branch 'master' into asgi-support
masipcat 095125f
mypy-flake8
masipcat 6726ce1
Merge branch 'asgi-support' of github.com:plone/guillotina into asgi-…
masipcat 3203b0d
Changes and fixes
masipcat e5d6a90
Removed yarl
masipcat 0265be1
Support for middlewares
masipcat e0955ef
Merge branch 'master' into asgi-support
masipcat 0333e34
Black
masipcat 61d7d20
Merge branch 'master' into asgi-support
masipcat 49230f1
Updated Cython for python3.8 (required by uvloop)
masipcat 515327a
fix uvloop
masipcat ed069ad
requested changes
masipcat 12deec6
Merge branch 'master' into asgi-support
masipcat dc73ece
Removed python 3.8 in travis
masipcat f925322
Merge branch 'master' into asgi-support
masipcat b57cd01
Changed implementation of reify
masipcat 88751c5
Merge branch 'master' into asgi-support
masipcat 7ae3546
Merge branch 'master' into asgi-support
masipcat c94cd49
Fix some tests are skiped and mypy errors
masipcat 6295819
Install extra 'testdata' in travis
masipcat a82df48
Merge branch 'master' into asgi-support
masipcat be427dd
Fixed tests
masipcat 5547069
Merge branch 'master' into asgi-support
masipcat a7bedb5
Merge branch 'master' into asgi-support
masipcat 827e228
Small fixes
masipcat 52f4200
fix
masipcat File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
@@ -0,0 +1,24 @@ | ||
# Advanced | ||
|
||
## Running Guillotina on another ASGI server | ||
|
||
Guillotina supoprt the following ASGI servers out-of-the-box: | ||
|
||
- `uvicorn` (used by default) | ||
- `hypercorn` | ||
|
||
Use the argument `--asgi-server` to choose one of the previous servers: | ||
|
||
```shell | ||
guillotina serve -c config.yaml --asgi-server=hypercorn | ||
``` | ||
|
||
You can use any other ASGI server by using `guillotina.entrypoint:app` as the app and the environment variable `G_CONFIG_FILE` to specificy the configuration file. | ||
|
||
**Example:** | ||
|
||
Running guillotina on `hypercorn` with QUIC support: | ||
|
||
```shell | ||
G_CONFIG_FILE=config.yaml hypercorn --quic-bind 127.0.0.1:4433 guillotina.entrypoint:app | ||
``` |

Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
two ws.prepare?