MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / delete

Method delete

client.go:473–475  ·  view source on GitHub ↗
(ctx context.Context, endpoint endpoint, data any, authFn authFunc)

Source from the content-addressed store, hash-verified

471}
472
473func (c *Client) delete(ctx context.Context, endpoint endpoint, data any, authFn authFunc) ([]byte, error) {
474 return c.request(ctx, http.MethodDelete, endpoint, data, authFn)
475}
476
477func (c *Client) setBaseHeaders(r *http.Request) {
478 r.Header.Set("Content-type", "application/json")

Callers 10

removeActivityByIDMethod · 0.95
unfollowMethod · 0.95
DeleteManyMethod · 0.80
DeleteMethod · 0.80
DeleteMethod · 0.80
DeleteMethod · 0.80
DeleteMethod · 0.80
SoftDeleteMethod · 0.80
InvalidateUserCacheMethod · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected