Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
MIT License
Bot releases are visible (Hide)
Published by AnWeber over 1 year ago
Published by AnWeber over 1 year ago
thx to @yanghua-ola and @nimatrueway
Published by AnWeber over 1 year ago
# @import
imports variables of *.http files (#184)Published by AnWeber over 1 year ago
Published by AnWeber over 1 year ago
$httpyac
in Script (Anweber/httpyac#405)Published by AnWeber over 1 year ago
Published by AnWeber over 1 year ago
Published by AnWeber over 1 year ago
$requestClient
).$requestClient.nativeClient
$requestClient.send(<body>)
to send string or Buffer with current client. Add EventListener $requestClient.on('message', (response) => ...)
to access respones of clientMQTT tcp://broker.hivemq.com
topic: httpyac
{{@streaming
async function writeStream(){
await sleep(1000);
$requestClient.on("message", (response) => {
console.info(response);
});
$requestClient.send("find me");
await sleep(1000);
$requestClient.send("wait for response");
await sleep(1000);
}
exports.waitPromise = writeStream();
}}
GET https://httpbin.org/anything
?? status == 200
MQTT tcp://broker.hivemq.com
topic: httpyac
Send one
===
Send two
=== wait-for-server
=== wait-for-server
Send three
# @keepStreaming
wss://scrumpoker.foo
###
wss://scrumpoker.foo
["CONNECT\naccept-version:1.1,1.0\nheart-beat:10000,10000\n\n\u0000"]
===
["SUBSCRIBE\nid:sub-0\ndestination:/user/topic/username\n\n\u0000"]
===
["SUBSCRIBE\nid:sub-1\ndestination:/user/topic/notification\n\n\u0000"]
===
["SUBSCRIBE\nid:sub-3\ndestination:/topic/setting/cardset/{{roomId}}\n\n\u0000"]
===
["SEND\ndestination:/ws/room/register\n\n{\"roomID\":\"{{roomId}}\"}\u0000"]
===
["SEND\ndestination:/ws/user/username\n\n{\"username\":\"httpyac\"}\u0000"]
###
wss://scrumpoker.foo
["SEND\ndestination:/ws/room/{{roomId}}/estimate\n\n{\"estimation\":\"5\"}\u0000"]
proxyExcludeList
config to exclude some url from proxy calls (AnWeber/vscode-httpyac#176)private.env.json
settings overrides other env.json
settings to be Intellij compatible (AnWeber/vscode-httpyac#175)Published by AnWeber over 1 year ago
Published by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
$random
Utils to create Mock DataPublished by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
thx to @vojtech-pejsa-redbit
Published by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
Published by AnWeber almost 2 years ago
Published by AnWeber about 2 years ago
Published by AnWeber about 2 years ago
/* ... */
comment directly after header