MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / NewInvokeProxyResponseWithRequestID

Function NewInvokeProxyResponseWithRequestID

pkg/api/controller.go:162–168  ·  view source on GitHub ↗
(requestID string)

Source from the content-addressed store, hash-verified

160}
161
162func NewInvokeProxyResponseWithRequestID(requestID string) *InvokeProxyResponse {
163 hMap := make(map[string]string, 0)
164 hMap[HeaderXRequestID] = requestID
165 return &InvokeProxyResponse{
166 Headers: hMap,
167 }
168}
169func (ir *InvokeProxyResponse) SetStatusCode(c int) {
170 ir.StatusCode = c
171}

Callers 2

InvokeHandlerMethod · 0.92
InvokeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected