“Mock:Intercept and directly return data”的产品徽标图片

Mock:Intercept and directly return data

4.6(

14 个评分

)
扩展程序开发者工具3,000 用户
Mock:Intercept and directly return data的项目媒体 5(屏幕截图)
Mock:Intercept and directly return data的项目媒体 1(屏幕截图)
Mock:Intercept and directly return data的项目媒体 2(屏幕截图)
Mock:Intercept and directly return data的项目媒体 3(屏幕截图)
Mock:Intercept and directly return data的项目媒体 4(屏幕截图)
Mock:Intercept and directly return data的项目媒体 5(屏幕截图)
Mock:Intercept and directly return data的项目媒体 1(屏幕截图)
Mock:Intercept and directly return data的项目媒体 1(屏幕截图)
Mock:Intercept and directly return data的项目媒体 2(屏幕截图)
Mock:Intercept and directly return data的项目媒体 3(屏幕截图)
Mock:Intercept and directly return data的项目媒体 4(屏幕截图)
Mock:Intercept and directly return data的项目媒体 5(屏幕截图)

概述

拦截请求并直接返回 Mock 数据,包括 XMLHttpRequest、fetch类接口

这是一款用于 Mock XMLHttpRequest 和 fetch 请求的工具。它可以帮助开发者在开发过程中减少对真实接口的依赖,从而更高效地编写和测试代码。 主要功能包括: 1. 支持对使用 XMLHttpRequest 或 fetch 方法发起的接口请求进行 Mock。 2. 能根据 Swagger 2.0 文档自动生成 Mock 数据。 3. 支持修改请求头(Request Headers)。 4. 支持修改请求体(Request Body)。 5. 可对接口请求进行重定向处理。 6. 提供三种匹配模式:contains、equals 和 regexp,以满足不同的接口匹配需求。 7. 支持自定义返回状态和请求响应时间。 8. 支持配置数据的导入和导出。 9. 提供浅色和深色两种主题。 10. 支持中英文双语切换,依据浏览器语言环境自动显示对应语言。 11. 支持配置数据可转换为 TypeScript 类型定义。 This is a tool for mocking XMLHttpRequest and fetch requests. It helps developers reduce reliance on real APIs during development, enabling more efficient coding and testing. Key features include: 1. Support for mocking API requests made using XMLHttpRequest or fetch methods. 2. Automatic generation of mock data based on Swagger 2.0 documentation. 3. Ability to modify request headers (Request Headers). 4. Ability to modify request bodies (Request Body). 5. Support for redirecting API requests. 6. Offers three matching modes: contains, equals, and regexp, to meet different API matching needs. 7. Customization of return status and response time. 8. Support for importing and exporting configuration data. 9. Light and dark themes available. 10. Bilingual support for Chinese and English, with automatic language selection based on the browser's language settings. 11. Configuration data can be converted into TypeScript type definitions.

4.6 星(5 星制)14 个评分

详细了解结果和评价。

详情

  • 版本
    2.3.2
  • 上次更新日期
    2025年4月16日
  • 提供方
    xiangmingcsyr
  • 大小
    508KiB
  • 语言
    中文(中国)
  • 开发者
    邮箱
    xiangmingcsyr@gmail.com
  • 非交易者
    该开发者尚未将自己标识为交易者。欧盟地区消费者须知:消费者权利可能不适用于您与该开发者达成的合约。

隐私权

该开发者已披露,此产品不会收集或使用您的数据。

该开发者已声明,您的数据:

  • 不会因未获批准的用途出售给第三方
  • 不会为实现与产品核心功能无关的目的而使用或转移
  • 不会为确定信用度或放贷目的而使用或转移

支持

若有任何疑问、建议或问题,请在桌面浏览器中打开此页面

Google 应用