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

Improve @wizardoc/http-request #68

Open
mistricky opened this issue Feb 1, 2021 · 0 comments
Open

Improve @wizardoc/http-request #68

mistricky opened this issue Feb 1, 2021 · 0 comments
Assignees

Comments

@mistricky
Copy link
Member

Currently, the mode field only does the one thing that automatically adds prefixes depending on whether it is a DEV environment, but in some condition, it's not very fixable for developers, in instance, I need to custom the prefix of request URL sometimes, through the @wizardoc/http-request allow us to change the prefix in HTTPFactory but the mode is very useful now, it just kind of like the mode field is redundant.

I'm thinking about that if it is possible to replace the mode field with replace field directly, that might allow developers can pass the prefix of request URL in server config.

@mistricky mistricky self-assigned this Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant