Skip to content

Improve @wizardoc/http-request #68

Description

@mistricky

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions