GithubHelp home page GithubHelp logo

Comments (4)

Colin-b avatar Colin-b commented on July 22, 2024

Hi @DeoLeung

Right now there is no way to retrieve proxy parameters linked to a request.

  1. Is this a feature you need?
  2. I assume you would want to assert the URL used for proxy? (including credentials if any?)

from pytest_httpx.

Colin-b avatar Colin-b commented on July 22, 2024

Since release 0.26.0 you can now match on proxy_url (str, regex or httpx.URL), order of query parameters does not matter (even though it's unlikely you provide any to your proxy url)

from pytest_httpx.

DeoLeung avatar DeoLeung commented on July 22, 2024

thank you for the quick response!

It works, just to mention currently for the proxy_url we need to append an / at the end.

from pytest_httpx.

Colin-b avatar Colin-b commented on July 22, 2024

thank you for the quick response!

It works, just to mention currently for the proxy_url we need to append an / at the end.

I think this is the actual URL queried by httpx, I might be wrong though, I will check it and fix it if this is not the actual one :)

from pytest_httpx.

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.