feat(gitea): add DeleteJSONBody for delete-with-body requests

This commit is contained in:
Mathias Bergqvist
2026-05-06 22:36:37 +02:00
parent e7bd954e90
commit 44c42fa636

View File

@@ -95,6 +95,10 @@ func (c *Client) DeleteJSON(ctx context.Context, path string) ([]byte, int, erro
return c.do(ctx, http.MethodDelete, path, nil)
}
func (c *Client) DeleteJSONBody(ctx context.Context, path string, body []byte) ([]byte, int, error) {
return c.do(ctx, http.MethodDelete, path, body)
}
type rawResponse struct {
Body []byte
Status int