mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 18:21:28 +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>
28 lines
327 B
Plaintext
28 lines
327 B
Plaintext
meta {
|
|
name: getHeader
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
bruno: is-awesome
|
|
}
|
|
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("req.getHeader(name)", function() {
|
|
const h = req.getHeader('bruno');
|
|
expect(h).to.equal("is-awesome");
|
|
});
|
|
} |