mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 02:01:01 +01:00
753a576c3c
Safe Mode Sandbox using QuickJS Co-authored-by: Anoop M D <anoop.md1421@gmail.com> Co-authored-by: lohit <lohit.jiddimani@gmail.com>
30 lines
393 B
Plaintext
30 lines
393 B
Plaintext
meta {
|
|
name: getHeaders
|
|
type: http
|
|
seq: 7
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
bruno: is-awesome
|
|
della: is-beautiful
|
|
}
|
|
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("req.getHeaders()", function() {
|
|
const h = req.getHeaders();
|
|
expect(h.bruno).to.equal("is-awesome");
|
|
expect(h.della).to.equal("is-beautiful");
|
|
});
|
|
} |