# Mock-Dev-Server > Vite-plugin-mock-dev-server Injects Mock Server into the Vite development environment, intercepts proxied API requests, and returns mock data. ## Table of Contents - [API Reference](/apiindex.md) - [API 参考](/zh/api.md) - [Authentication and Authorization Example](/examplesauth.md) - [Basic Examples](/examplesbasic.md) - [Build a standalone mock service](/guidemock-service.md) - [Cookies](/examplescookies.md) - [Cookies](/zh/examples/cookies.md) - [createDefineMock](/apicreate-define-mock.md) - [createDefineMock](/zh/api/create-define-mock.md) - [createDefineMock(transformer)](/guidecreate-define-mock.md) - [createDefineMock(transformer)](/zh/guide/create-define-mock.md) - [createSSEStream](/apicreate-sse-stream.md) - [createSSEStream](/zh/api/create-sse-stream.md) - [createSSEStream(req, res)](/guidecreate-sse-stream.md) - [createSSEStream(req, res)](/zh/guide/create-sse-stream.md) - [CRUD Complete Example](/examplescrud.md) - [CRUD 完整示例](/zh/examples/crud.md) - [Custom Body](/examplesbody.md) - [Custom Response](/examplesresponse.md) - [Custom Response Headers](/examplesheader.md) - [Custom response status](/examplesstatus.md) - [defineMock](/apidefine-mock.md) - [defineMock](/zh/api/define-mock.md) - [defineMock(mockConfig)](/guidedefine-mock.md) - [defineMock(mockConfig)](/zh/guide/define-mock.md) - [defineMockData](/apidefine-mock-data.md) - [defineMockData](/zh/api/define-mock-data.md) - [defineMockData(key, initialData \[, options])](/guidedefine-mock-data.md) - [defineMockData(key, initialData \[, options])](/zh/guide/define-mock-data.md) - [Directory and file management](/guidefile-management.md) - [Error Simulation](/exampleserror-simulation.md) - [EventSource](/examplesevent-source.md) - [EventSource](/zh/examples/event-source.md) - [File Upload](/examplesfile.md) - [File Upload](/guideupload.md) - [Format & Extension](/examplesformat-extension.md) - [Graphql](/examplesgraphql.md) - [Graphql](/zh/examples/graphql.md) - [Introduce](/guideintroduce.md) - [Migrate from v1.x](/guidemigrate-v2.md) - [Mock Configuration](/guidemock-config.md) - [Mock 配置](/zh/guide/mock-config.md) - [mockDevServerPlugin](/apimock-dev-server-plugin.md) - [mockDevServerPlugin](/zh/api/mock-dev-server-plugin.md) - [mockDevServerPlugin(options)](/guidemock-plugin.md) - [mockDevServerPlugin(options)](/zh/guide/mock-plugin.md) - [MockHttpItem](/apimock-http-item.md) - [MockHttpItem](/zh/api/mock-http-item.md) - [MockRequest](/apimock-request.md) - [MockRequest](/zh/api/mock-request.md) - [MockResponse](/apimock-response.md) - [MockResponse](/zh/api/mock-response.md) - [MockServerPluginOptions](/apimock-server-plugin-options.md) - [MockServerPluginOptions](/zh/api/mock-server-plugin-options.md) - [Path Matching Rules](/guidepath-matching.md) - [Plugin Configuration](/guideplugin-config.md) - [Real-world Examples](/examplesreal-world.md) - [Request Lifecycle](/guiderequest-lifecycle.md) - [Request Record and Replay](/guiderecord-and-replay.md) - [Request Validator](/examplesvalidator.md) - [Scene Mock](/examplesscene.md) - [Scene Mock](/guidescene.md) - [Shared Content](/guideshared.md) - [Shared Data](/guideshared-data.md) - [Static resource service](/examplesstatic.md) - [Teamwork](/guideteamwork.md) - [Troubleshooting](/guidetroubleshootingindex.md) - [Untitled](/zh/examples/file.md) - [Usage](/guideusage.md) - [Using the faker-js library](/examplesfaker.md) - [Using the mockjs library](/examplesmockjs.md) - [Vite-Plugin-Mock-Dev-Server](/zh.md) - [WebSocket](/exampleswebsocket.md) - [WebSocket](/zh/examples/websocket.md) - [WebSocket Configuration Guide](/guidewebsocket-config.md) - [WebSocket 配置详解](/zh/guide/websocket-config.md) - [介绍](/zh/guide/introduce.md) - [从 v1.x 迁移](/zh/guide/migrate-v2.md) - [使用](/zh/guide/usage.md) - [使用 faker-js 库](/zh/examples/faker.md) - [使用 mockjs库](/zh/examples/mockjs.md) - [共享内容](/zh/guide/shared.md) - [共享数据](/zh/guide/shared-data.md) - [团队协作](/zh/guide/teamwork.md) - [场景模拟](/zh/examples/scene.md) - [场景模拟](/zh/guide/scene.md) - [基础示例](/zh/examples/basic.md) - [插件配置](/zh/guide/plugin-config.md) - [故障排查](/zh/guide/troubleshooting.md) - [文件上传](/zh/guide/upload.md) - [构建独立部署的mock服务](/zh/guide/mock-service.md) - [目录文件管理](/zh/guide/file-management.md) - [真实场景示例](/zh/examples/real-world.md) - [类型格式](/zh/examples/format-extension.md) - [自定义响应体](/zh/examples/body.md) - [自定义响应头](/zh/examples/header.md) - [自定义响应状态](/zh/examples/status.md) - [自定义请求响应内容](/zh/examples/response.md) - [认证授权示例](/zh/examples/auth.md) - [请求录制与回放](/zh/guide/record-and-replay.md) - [请求生命周期](/zh/guide/request-lifecycle.md) - [请求验证器](/zh/examples/validator.md) - [路径匹配规则](/zh/guide/path-matching.md) - [错误模拟](/zh/examples/error-simulation.md) - [静态资源服务](/zh/examples/static.md)