Comments (5)
httpx works very well. To do HTTP/1.1 with HTTP/2 upgrade you can use:
client = httpx.AsyncClient(http1=True, http2=True, headers={'Connection': 'upgrade', 'Upgrade': 'h2c'})
...and for HTTP/2 prior knowledge:
client = httpx.AsyncClient(http1=False, http2=True)
I've set the test client to prior knowledge to match the other 3GPP NF interfaces.
from rt-5gms-application-server.
Added the cache purge operation to the test client. This can take two forms:
m3_client_cli.py -H <host>:<port> purge <provisioning-session-id>
- This will purge all cache entries for the provisioning session (pattern
field in the request body is not present).
m3_client_cli.py -H <host>:<port> purge <provisioning-session-id> <regex>
- This will purge all cache entries for the provisioning session where the cached URL path matches the regex (sent in the pattern
field of the request body), the URL path used for the comparison is the full path of the object on the backend origin.
from rt-5gms-application-server.
Implemented a basic client which can do certificates list/add/update/delete and content hosting configuration list/add/update/delete. Code needs tidying up and M3 operations separating into a module, away from command line parsing, for re-use in unit tests.
from rt-5gms-application-server.
Code tidied up and pushed to the feature-add-m3-interface branch on my fork.
from rt-5gms-application-server.
Realised the test client is only talking HTTP/1.1, need to switch from the requests module to the httpx module in order to use HTTP/2. Not sure if this module does prior knowledge for HTTP/2 (will test with httpx.AsyncClient(http1=False, http2=True)
to see if it'll go straight to HTTP/2).
from rt-5gms-application-server.
Related Issues (20)
- Use OpenAPI to bindings script from 5G-MAG/rt-common-shared repository. HOT 3
- MVP#1 Application Server installation issues/observations HOT 21
- asyncio.create_task(..., name=...) doesn't work with Python 3.7 HOT 1
- Error, following the build instructions HOT 5
- Application Server crash on certificate upload HOT 3
- Content Hosting Configuration handling uplift in 5GMSd AS HOT 5
- Incorrect error response status code for M1_ContentHostingProvisioning_purgeContentHostingCache operation HOT 3
- Documentation updates after review on 23 Jan 2023 HOT 5
- Enhancement: Return number of cache entries purged in M3 response
- MVP#2 Application Server installation/running issues/observations HOT 11
- CI/CD - Automated deployment of 5GMS AS to Linode instance HOT 1
- Implement Server Health Check endpoint
- Uplift to TS 26.512 v17.4.0: Update M3 interface with new ContentHostingConfiguration structure HOT 1
- Feature: Media Streaming Data Reporting at reference point R4 HOT 1
- 5gms-application-server reports `Path parameters cannot have a default value` HOT 3
- Upstream redirects are passed to client HOT 9
- Redirection fails with recent OpenResty version HOT 1
- change in pydantic v2 HOT 3
- Development branch: Missing Nginx mime.types after clean installation HOT 2
- Updating PATH for launching Openresty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rt-5gms-application-server.