MCPcopy Create free account
hub / github.com/astercloud/aster / Created

Function Created

pkg/server/response.go:81–83  ·  view source on GitHub ↗

Created 辅助函数:发送 201 Created 响应

(w http.ResponseWriter, data any)

Source from the content-addressed store, hash-verified

79
80// Created 辅助函数:发送 201 Created 响应
81func Created(w http.ResponseWriter, data any) {
82 JSON(w, http.StatusCreated, data)
83}
84
85// NoContent 辅助函数:发送 204 No Content 响应
86func NoContent(w http.ResponseWriter) {

Callers

nothing calls this directly

Calls 1

JSONFunction · 0.85

Tested by

no test coverage detected