Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to add a port proxy #484

Open
GAODBK opened this issue Oct 19, 2024 · 7 comments
Open

I want to add a port proxy #484

GAODBK opened this issue Oct 19, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@GAODBK
Copy link

GAODBK commented Oct 19, 2024

I want to add a port proxy

Hello developers, I have a network here, which is not working properly, so the program must be set up with port proxies in order to access it, could you please design

@GAODBK GAODBK added the enhancement New feature or request label Oct 19, 2024
@ashitaprasad
Copy link
Member

Sure you can go ahead and share some mockups on this thread regarding this feature.

@GAODBK
Copy link
Author

GAODBK commented Oct 20, 2024

"Thank you! Or maybe you could first release a quick feature, if possible. In the 'Request' -> 'View Code,' it would be great if I could customize the editing. That way, I could modify the curl --url 'https://cdn.jsdelivr.net/gh/GAODBK' to: curl --proxy http://localhost:4356 --url 'https://cdn.jsdelivr.net/gh/GAODBK'."

@ashitaprasad
Copy link
Member

@GAODBK The code is just generated for different languages and even if you edit the code it will not be executed by API Dash .. we have to actually implement this feature to use a proxy in API Dash.

@ashitaprasad ashitaprasad added the good first issue Good for newcomers label Nov 11, 2024
@WrathOP
Copy link
Contributor

WrathOP commented Nov 30, 2024

Hi I wanted to work on this issue, was there any internal discussion on how this should be implemented? Or should I start with an draft of my approach first?

@GAODBK
Copy link
Author

GAODBK commented Nov 30, 2024

嗨,我想解决这个问题,内部有没有关于如何实施的讨论?还是我应该先从我的方法草稿开始?

I just want an input box that will satisfy me to edit query statements such as the query”curl --proxy http://localhost:4356 --url https://cdn.jsdelivr.net/gh/GAODBK”

@WrathOP
Copy link
Contributor

WrathOP commented Nov 30, 2024

https://learning.postman.com/docs/getting-started/installation/proxy/

I don't think this is that simple that we just add a server to use as proxy. I was asking about the scope of which this feature the members think need to implement. Like we need to support system proxy? Add user and password? Add a setting for proxy like postman does it.

@GAODBK
Copy link
Author

GAODBK commented Nov 30, 2024

yes,i need,I found the code, which uses something like this::

      axios({
        url:
          "/upload" +
          "?authCode=" +
          cookies.get("authCode") +
          "&serverCompress=" +
          needServerCompress +
          "&uploadChannel=" +
          this.uploadChannel,
        method: "post",
        data: formData,
        onUploadProgress: (progressEvent) => {
          const percentCompleted = Math.round(
            (progressEvent.loaded / progressEvent.total) * 100
          );
          file.onProgress({ percent: percentCompleted, file: file.file });
        },
      })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants
@ashitaprasad @WrathOP @GAODBK and others