httpyac

Command Line Interface for *.http and *.rest files. Connect with http, gRPC, WebSocket and MQTT

MIT License

Downloads
27.7K
Stars
401
Committers
20

Bot releases are hidden (Show)

httpyac - v6.4.2

Published by AnWeber over 1 year ago

Fixes

  • reuse current NodeJS Context instead of creating custom Context to allow use of crypto in NodeJS@20 (#437)
httpyac - v6.4.1

Published by AnWeber over 1 year ago

Fixes

  • using askonce modifier is optional (AnWeber/vscode-httpyac#190)
httpyac - v6.4.0

Published by AnWeber over 1 year ago

Features

  • add support for custom plugins in httpFileStore initialization (AnWeber/vscode-httpyac#186)
  • add modifier $input-askonce to ask only once for $input (#436)

Fixes

  • ensure deletion of additional body properties (prettyPrintBody, parsedBody, rawBody), if body property is modified (AnWeber/httpbook#84)
httpyac - v6.3.4

Published by AnWeber over 1 year ago

Fixes

  • response is correctly parsed with HttpSymbolKind.Response
  • Markdown and Asciidoctor Files are parsed correctly in CLI (#425)
httpyac - v6.3.3

Published by AnWeber over 1 year ago

Fixes

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

Contributors

thx to @yanghua-ola and @nimatrueway

httpyac - v6.3.2

Published by AnWeber over 1 year ago

Fixes

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

Published by AnWeber over 1 year ago

Fixes

  • add activeEnvironment to HttpFile (#415)
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 (#405)

Fixes

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

Published by AnWeber over 1 year ago

Fixes

  • no infinite loop using cli with selection (#409)
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)
httpyac - v6.1.0

Published by AnWeber over 1 year ago

Features

  • add code completion for tests
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)

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)
httpyac - v5.10.2

Published by AnWeber over 1 year ago

Fix

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

Published by AnWeber almost 2 years ago

Fix

  • variables in request body import are replaced (#377)
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
httpyac - v5.9.0

Published by AnWeber almost 2 years ago

Features

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

Fixes

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

Published by AnWeber almost 2 years ago

Fixes

  • allow whitespace around variable definition (#354)

Contributors

thx to @vojtech-pejsa-redbit

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
httpyac - v5.8.0

Published by AnWeber almost 2 years ago

Features

  • add docker image for httpyac

Fixes

  • Cookie Header support variable replacment (#352)
  • Parsing Issue with non HTTP responses
httpyac - v5.7.5

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)
Package Rankings
Top 4.08% on Npmjs.org
Related Projects