MCPcopy
hub / github.com/microsoft/playwright-mcp / setContent

Method setContent

tests/testserver/index.ts:89–94  ·  view source on GitHub ↗
(path: string, content: string, mimeType: string)

Source from the content-addressed store, hash-verified

87 }
88
89 setContent(path: string, content: string, mimeType: string) {
90 this.route(path, (req, res) => {
91 res.writeHead(200, { 'Content-Type': mimeType });
92 res.end(mimeType === 'text/html' ? `<!DOCTYPE html>${content}` : content);
93 });
94 }
95
96 redirect(from: string, to: string) {
97 this.route(from, (req, res) => {

Callers 2

resetMethod · 0.95
click.spec.tsFile · 0.80

Calls 1

routeMethod · 0.95

Tested by

no test coverage detected