MCPcopy
hub / github.com/mislav/hub / PostJSON

Method PostJSON

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

Source from the content-addressed store, hash-verified

468}
469
470func (c *simpleClient) PostJSON(path string, payload interface{}) (*simpleResponse, error) {
471 return c.jsonRequest("POST", path, payload, nil)
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) {

Callers 8

RequestReviewMethod · 0.80
CreateRepositoryMethod · 0.80
CreateReleaseMethod · 0.80
ForkRepositoryMethod · 0.80
CreateIssueMethod · 0.80
GraphQLMethod · 0.80
FindOrCreateTokenMethod · 0.80
CreateGistMethod · 0.80

Calls 1

jsonRequestMethod · 0.95

Tested by

no test coverage detected