vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code

MIT License

Stars
235

Bot releases are hidden (Show)

vscode-httpyac - v6.3.4

Published by AnWeber over 1 year ago

Fixes

  • response is correctly parsed with HttpSymbolKind.Response
vscode-httpyac - v6.3.3

Published by AnWeber over 1 year ago

Fixes

  • allow async/await syntax in code snippets (AnWeber/httpyac#398)
  • unable to use variable as graphql input (AnWeber/httpyac#421)

Contributors

thx to @yanghua-ola and @nimatrueway

vscode-httpyac - v6.3.2

Published by AnWeber over 1 year ago

Fixes

  • # @import imports variables of *.http files (#184)
  • setSource uses correct startOffset (AnWeber/httpbook#82)
vscode-httpyac - v6.3.1

Published by AnWeber over 1 year ago

Fixes

  • add activeEnvironment to HttpFile (#415)
vscode-httpyac - v6.3.0

Published by AnWeber over 1 year ago

Breaking Changes

  • some utils functions are removed and added directly to httpRegion (e.g isGlobalHttpRegion)

Features

  • add Additional orchestration capabilities by providing $httpyac in Script (Anweber/httpyac#405)

Fixes

  • fix Maximum call stack size exceeded when remove AMQP Session from store (Anweber/httpyac#410)
  • add missing request to GRPC, AMQP, Websocket and EventSource Responses (Anweber/httpyac#413)
vscode-httpyac - v6.2.0

Published by AnWeber over 1 year ago

Features

  • allow sending body in GET Request (AnWeber/vscode-httpyac#179)
  • allow import of files into variable (AnWeber/vscode-httpyac#180)
  • allow setting global var with variable notation (AnWeber/vscode-httpyac#180)

Fixes

  • GRPC Request needs to be object instead of Buffer/string (Anweber/httpyac#407)
vscode-httpyac - v6.1.0

Published by AnWeber over 1 year ago

Features

  • add code completion for tests
vscode-httpyac - v6.0.0

Published by AnWeber over 1 year ago

Breaking Changes

  • Protocol Specific Request Clients are replaced with generic interface RequestClient ($requestClient).
  • to access previous Client you can use $requestClient.nativeClient
  • removed Variables: amqpClient, amqpChannel, grpcStream, mqttClient, websocketClient
  • requireUncached is removed

Features

  • use $requestClient.send(<body>) to send string or Buffer with current client. Add EventListener $requestClient.on('message', (response) => ...) to access respones of client
MQTT 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();
}}
  • extended and simpler assert logic (docs)
GET https://httpbin.org/anything

?? status == 200
  • multiple specification of request body per response (like Intellij Request Body separator)
MQTT tcp://broker.hivemq.com
topic: httpyac

Send one
===
Send two
=== wait-for-server
=== wait-for-server
Send three
  • websocket requests with same url as a websocket request are requested with the same url. You can keep a WebSocket Client open and send additional requests.
# @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"]

  • add parallel option to cli and test runner to execute requests in parallel.
  • process each line of an event stream like Intellij (see)
  • add proxyExcludeList config to exclude some url from proxy calls (AnWeber/vscode-httpyac#176)
  • add icon indicator for copy value (#169)

Fixes

  • no-redirect did not prevent redirect (AnWeber/vscode-httpyac#171)
  • private.env.json settings overrides other env.json settings to be Intellij compatible (AnWeber/vscode-httpyac#175)
vscode-httpyac - v5.10.3

Published by AnWeber over 1 year ago

Fix

  • xmldom warnings and errors are redirected to log.debug (#383)
vscode-httpyac - v5.10.2

Published by AnWeber almost 2 years ago

Fix

  • variables in request body import are replaced (anweber/httpyac#377)
vscode-httpyac - v5.10.1

Published by AnWeber almost 2 years ago

Fix

  • generate code uses Buffer as valid body for harRequest (#166)
vscode-httpyac - v5.10.0

Published by AnWeber almost 2 years ago

Features

  • add Intellijj Http Graphql Method support (AnWeber/vscode-httpyac#165)
  • update Intellijj Dynamic Variables
  • add Intellij PreRequest Script Support
  • add $random Utils to create Mock Data
vscode-httpyac - v5.9.0

Published by AnWeber almost 2 years ago

Features

  • provide Global Variable Cache (AnWeber/httpyac#358)
  • add XPath Variable Replacer (httpyac/httpyac.github.io#62)

Fixes

  • replace header variables before body (httpyac/httpyac.github.io#63)
vscode-httpyac - v5.8.3

Published by AnWeber almost 2 years ago

Features

  • nesting of testItems support filesystem structure (#163)
vscode-httpyac - v5.8.2

Published by AnWeber almost 2 years ago

Fixes

  • allow whitespace around variable definition (AnWeber/httpyac#354)
  • response code lens support if user-data-dir is used (#161)
  • generate unique id for httpRegion (httpyac/httpyac.github.io#60)

Contributors

thx to @vojtech-pejsa-redbit

vscode-httpyac - v5.8.1

Published by AnWeber almost 2 years ago

Fixes

  • allow set of MQTT Username and Password with Request Headers (httpyac/httpyac.github.io#58)
  • display correct version in docker command
vscode-httpyac - v5.8.0

Published by AnWeber almost 2 years ago

Features

  • add docker image for httpyac CLI
  • some debug improvements

Fixes

  • Cookie Header support variable replacment (AnWeber/httpyac#352)
  • Parsing Issue with non HTTP responses
  • add response to cache before showing editor
vscode-httpyac - v5.7.6

Published by AnWeber almost 2 years ago

Fixes

  • support protocol with multiline urls (AnWeber/vscode-httpyac#159)
  • prevent issue with string.replace special replacement patterns (httpyac/httpyac.github.io#57)
vscode-httpyac - v5.7.5

Published by AnWeber almost 2 years ago

Fixes

  • fix missing jwt data (httpyac/httpyac.github.io#56)
vscode-httpyac - v5.7.4

Published by AnWeber about 2 years ago

Fixes

  • update inquirer and filesize
  • parser error on /* ... */ comment directly after header
Related Projects