(src string, flowRateLimited bool)
| 40 | } |
| 41 | |
| 42 | func mustInitRespMetaHeader(src string, flowRateLimited bool) string { |
| 43 | header, err := json.Marshal(responseMetaHeader{Source: src, FlowRateLimited: flowRateLimited}) |
| 44 | if err != nil { |
| 45 | panic(fmt.Sprintf("Failed to serialize response meta header = %s, err: %v", src, err)) |
| 46 | } |
| 47 | return string(header) |
| 48 | } |
| 49 | |
| 50 | var headerEncoding = base64.RawStdEncoding |
| 51 |