MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isWriteMethod

Function isWriteMethod

src/ui-server/security.ts:74–76  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

72const WRITE_CONTENT_TYPE = 'application/json';
73
74export function isWriteMethod(method: string): boolean {
75 return WRITE_METHODS.includes(method);
76}
77
78/**
79 * Whether a mutating request is one the viewer could have made.

Callers 1

handleRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected