MCPcopy Index your code
hub / github.com/supabase/auth / NewPostInviteRequest

Function NewPostInviteRequest

client/admin/client.go:1230–1238  ·  view source on GitHub ↗

NewPostInviteRequest calls the generic PostInvite builder with application/json body

(server string, body PostInviteJSONRequestBody)

Source from the content-addressed store, hash-verified

1228
1229// NewPostInviteRequest calls the generic PostInvite builder with application/json body
1230func NewPostInviteRequest(server string, body PostInviteJSONRequestBody) (*http.Request, error) {
1231 var bodyReader io.Reader
1232 buf, err := json.Marshal(body)
1233 if err != nil {
1234 return nil, err
1235 }
1236 bodyReader = bytes.NewReader(buf)
1237 return NewPostInviteRequestWithBody(server, "application/json", bodyReader)
1238}
1239
1240// NewPostInviteRequestWithBody generates requests for PostInvite with any type of body
1241func NewPostInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {

Callers 1

PostInviteMethod · 0.85

Calls 2

MarshalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…