Skip to content

如何同时执行请求替换和script脚本操作请求 #34

@TwinkleSevenStream

Description

@TwinkleSevenStream

例如:
mock.com 127.0.0.1:8080 script://handleGateway(a,b,c)

希望将mock.com的请求转发到127.0.0.1:8080,并通过script插件里写的handleGateway脚本对请求/响应进行处理。
目前这么写,会因为匹配原则的优先级,导致只有转发到127.0.0.1:8080生效,而script插件不生效。

请问如何同时执行请求替换和script脚本呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions