(reqBody any)
| 177 | } |
| 178 | |
| 179 | func JsonEncodeRequestBody(reqBody any) (bytes.Buffer, error) { |
| 180 | var buf bytes.Buffer |
| 181 | encoder := json.NewEncoder(&buf) |
| 182 | encoder.SetEscapeHTML(false) |
| 183 | err := encoder.Encode(reqBody) |
| 184 | if err != nil { |
| 185 | return buf, err |
| 186 | } |
| 187 | return buf, nil |
| 188 | } |
| 189 | |
| 190 | func MakeHTTPClient(proxyURL string) (*http.Client, error) { |
| 191 | client := &http.Client{ |
no outgoing calls
no test coverage detected