MCPcopy Create free account
hub / github.com/golang/appengine / NewRequest

Method NewRequest

aetest/instance_vm.go:66–74  ·  view source on GitHub ↗

NewRequest returns an *http.Request associated with this instance.

(method, urlStr string, body io.Reader)

Source from the content-addressed store, hash-verified

64
65// NewRequest returns an *http.Request associated with this instance.
66func (i *instance) NewRequest(method, urlStr string, body io.Reader) (*http.Request, error) {
67 req, err := http.NewRequest(method, urlStr, body)
68 if err != nil {
69 return nil, err
70 }
71
72 // Associate this request.
73 return internal.RegisterTestRequest(req, i.apiURL, "dev~"+i.appID), nil
74}
75
76// Close kills the child api_server.py process, releasing its resources.
77func (i *instance) Close() (err error) {

Callers

nothing calls this directly

Calls 2

RegisterTestRequestFunction · 0.92
NewRequestMethod · 0.65

Tested by

no test coverage detected