GithubHelp home page GithubHelp logo

Comments (5)

davidjwbbc avatar davidjwbbc commented on September 14, 2024 1

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.

davidjwbbc avatar davidjwbbc commented on September 14, 2024 1

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.

davidjwbbc avatar davidjwbbc commented on September 14, 2024

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.

davidjwbbc avatar davidjwbbc commented on September 14, 2024

Code tidied up and pushed to the feature-add-m3-interface branch on my fork.

from rt-5gms-application-server.

davidjwbbc avatar davidjwbbc commented on September 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.