Git Product home page Git Product logo

Comments (9)

sirdarckcat avatar sirdarckcat commented on May 3, 2024

hi

if there is POST data included, what would you expect to happen? should the request include the POST data or not?

this would probably be the easiest to implement in Response Headers.

also, this would still forward the request after the request is done, IIRC from twitter you also wanted to cancel the request. would you like to be able to cancel the request at the end? (it's still possible, although different)

from tamperchrome.

homakov avatar homakov commented on May 3, 2024

Yes it should include all data. I want request cancelled completely because I already have the details of request i want to make and can do it myself.

from tamperchrome.

sirdarckcat avatar sirdarckcat commented on May 3, 2024

ok, thanks. cancelling the request then is a bit more complicated, but doable.

from tamperchrome.

homakov avatar homakov commented on May 3, 2024

not urgent for me anymore: figured out how to trivially do it with cancel: true and retrieve entire request data in my own extension.

from tamperchrome.

sirdarckcat avatar sirdarckcat commented on May 3, 2024

cool! were you able to cancel the request after the request headers are committed?

According to the docs onSendHeaders is not allowed to cancel the request, which means that you probably need to get a hold of the request id and then fetch the request data with devtools.network?

Or how did you do it?

from tamperchrome.

homakov avatar homakov commented on May 3, 2024

I get the body in onBeforeRequest and save it for its requestId, then inside onBeforeSendHeaders I can see headers and cancel it. I don't use onSendHeaders as I am not interested in how headers could be modified by some extensions.

from tamperchrome.

sirdarckcat avatar sirdarckcat commented on May 3, 2024

Oh, OK. OnBeforeRequest doesn't have the full request body, but I guess it's sufficient for your use case :-)

from tamperchrome.

sirdarckcat avatar sirdarckcat commented on May 3, 2024

I'll keep track of this feature request on #18 as part of the UI simplicification efforts.

from tamperchrome.

homakov avatar homakov commented on May 3, 2024

can you elaborate about not full body? is it chopped at some point? Most requests I care about are under 10000 chars

from tamperchrome.

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.