MCPcopy
hub / github.com/mislav/hub / PostJSONPreview

Method PostJSONPreview

github/http.go:474–478  ·  view source on GitHub ↗
(path string, payload interface{}, mimeType string)

Source from the content-addressed store, hash-verified

472}
473
474func (c *simpleClient) PostJSONPreview(path string, payload interface{}, mimeType string) (*simpleResponse, error) {
475 return c.jsonRequest("POST", path, payload, func(req *http.Request) {
476 req.Header.Set("Accept", mimeType)
477 })
478}
479
480func (c *simpleClient) PatchJSON(path string, payload interface{}) (*simpleResponse, error) {
481 return c.jsonRequest("PATCH", path, payload, nil)

Callers 1

CreatePullRequestMethod · 0.80

Calls 2

jsonRequestMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected