execute performs an HTTP request and inspects the returned data for an error encoded by the remote end in a JSON structure. If no error is present, the entire, raw request payload is returned.
(method, url string, data []byte)
| 124 | // encoded by the remote end in a JSON structure. If no error is present, the |
| 125 | // entire, raw request payload is returned. |
| 126 | func (wd *remoteWD) execute(method, url string, data []byte) (json.RawMessage, error) { |
| 127 | return executeCommand(method, url, data) |
| 128 | } |
| 129 | |
| 130 | func executeCommand(method, url string, data []byte) (json.RawMessage, error) { |
| 131 | debugLog("-> %s %s\n%s", method, filteredURL(url), data) |
no test coverage detected