func newRuntimeAPIClient()

in fc/runtime_api_client.go [59:66]


func newRuntimeAPIClient(address string) *runtimeAPIClient {
	client := &http.Client{
		Timeout: 0, // connections to the runtime API are never expected to time out
	}
	endpoint := "http://" + address + "/" + apiVersion + "/runtime/invocation/"
	userAgent := "aliyun-fc-go/" + runtime.Version()
	return &runtimeAPIClient{endpoint, userAgent, client}
}