mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 04:05:42 +00:00
* feat: bru.sendRequest api * updated the postman-translations logic to handle `pm.sendRequest` to `bru.sendRequest` translations, and added unit tests * ~ removed `maxRedirects` and `proxy` values for sendRequest axios-instance ~ fixed the imports for the `send-request-transformer` function ~ `sendRequest` and `runRequest` will return same response object in both safe and developer mode ~ sendRequest function optimization * revert sendRequest to async function, added a testcase for sendRequest with url string * sendRequest callback errors handling * updated tests and added await for the callbacks --------- Co-authored-by: lohit <lohit@usebruno.com>
19 lines
330 B
Plaintext
19 lines
330 B
Plaintext
meta {
|
|
name: get-url-string
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: https://echo.usebruno.com
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
tests {
|
|
await test("send request with a get url string", async () => {
|
|
const res = await bru.sendRequest("https://testbench-sanity.usebruno.com/ping");
|
|
expect(res.data).to.eql('pong');
|
|
});
|
|
}
|