Giter Site home page Giter Site logo

Dynamic Headers about hoppscotch HOT 19 CLOSED

hoppscotch avatar hoppscotch commented on May 7, 2024
Dynamic Headers

from hoppscotch.

Comments (19)

saphal1998 avatar saphal1998 commented on May 7, 2024 2

@nickpalenchar Really new to contributing. Can you rope me in while working on this issue? I'd really like to learn.

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024 2

Hi @saphal1998 I just emailed you, happy to work with you on this!

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024 2

Awesome @sblasa! I’ll be emailing you in a few hours 🙏

from hoppscotch.

NBTX avatar NBTX commented on May 7, 2024 2

Okay in that case, I'll open a new issue in place of #139 and #196 about some kind of scripting language and we can close this PR in favor of working on #147 collectively (it doesn't really make sense to have two sets of people working on the exact same feature).

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024 1

I like this idea, but I think it can be broken into a few features.

First step is adding a way to interpolate variables into the request (which would actually make them dynamic)

While there could be a few built-in variables, it would make sense to have a "pre-request" script that sets additional variables.

The example OP gives implies chaining requests, with subsequent ones having access to bindings for data returned from the previous request. This would be really cool and convenient, but is a larger feature to build out for sure.

I'll start by looking into an option for pre-request script/adding variables in requests.

from hoppscotch.

sblasa avatar sblasa commented on May 7, 2024 1

Hi @nickpalenchar and @saphal1998 ! Just wondering if I could assist with this issue? I wasn't sure if @saphal1998 was working on it based on the status. Thanks!

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024 1

Great! Please collaborate and discuss! 🎉

from hoppscotch.

sblasa avatar sblasa commented on May 7, 2024 1

Thanks, @liyasthomas -- oh forgot to ask if you could also assign this to me.

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024 1

You can go on as in your previous plans. Only one might be able to merge. Just shared another branch to see his implementation.

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024

@sblasa you want to work on this feature? Shall I assign this to you.

from hoppscotch.

sblasa avatar sblasa commented on May 7, 2024

@liyasthomas , yes, I would like to work on this feature, but I'd like to work with @nickpalenchar 's implementation of the features he mentioned to help me get started.

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024

oops, @sblasa, I see you don't have a public email; go ahead and send me one instead (email address on my github profile). Talk soon!

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024

Environment variables feature branch is in WIP here: https://github.com/terranblake/postwoman/tree/terranblake/basic-environment

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024

uh oh.. this is also being worked on here: https://github.com/liyasthomas/postwoman/tree/feature/dynamic-headers

Not sure how to proceed.

from hoppscotch.

NBTX avatar NBTX commented on May 7, 2024

This could also be merged with #139 potentially #196 and this use case of #147 was specifically mentioned here: #147 (comment)

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024

#147 (introducing environment variables) will most probably solve all these. @terranblake is working on it, and will make PR within few days.

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024

Okay. Thats fine. Lets hear from @nickpalenchar about latest updates.

from hoppscotch.

nickpalenchar avatar nickpalenchar commented on May 7, 2024

The work I've been doing with feature/dynamic-headers probably satisfies #139 more accurately, since its incorporating something similar to Postman's Pre-Request Scripts. This work could be moved to the new issue @NBTX plans to open in place of #139 and #196 , and I can continue there. It's been a very busy few weeks for me so my work's been slow to progress, but I'm hoping I'll be able to push this weekend and have it completed. When done, it can probably used in conjunction with #147

Additionally, @sblasa is looking at some syntax highlighting for pre-request scripts (potentially other places too); we might want to make that a separate issue for that as well

from hoppscotch.

liyasthomas avatar liyasthomas commented on May 7, 2024

Closing due to inactivity

from hoppscotch.

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.