Skip to content

kdb-common-1.1.4-2020.06.14

Compare
Choose a tag to compare
@jasraj jasraj released this 15 Jun 19:19
· 88 commits to master since this release

This release includes 3 new library - http, wsc and terminal.

HTTP Query Library (http)

This library provides HTTP GET, POST, PUT and DELETE interfaces with additional features from the default GET (.Q.hg) and POST (.Q.hp):

  • Additional headers can be sent with each request
  • The "User-Agent" header will be sent (if configured), to identify the source process
  • HTTP repsonses are parsed into a dictionary for easier processing of HTTP result
    • Includes automatically converting JSON responses with .j.k
  • Automatically follow redirects
  • Automatic URL encoding of query string fields and values

The following features present in .Q.hg and .Q.hp are also supported:

  • Routing via proxy if HTTP_PROXY or HTTPS_PROXY set
  • Bypassing proxy if target URL present in NO_PROXY
  • Basic authentication supported with http://username:password@host syntax
  • GZIP encoding request and decoding (only with kdb+ 4.0 or greater)

WebSocket Client Library (wsc)

Provides the ability to initiate WebSocket connections easily via .wsc.connect

Terminal (Console) Management (terminal)

This library can track changes to the current terminal window that kdb+ is running in and adjust the kdb console size (system "c") to match it.

The adjustment can be done manually (via .terminal.setToCurrentSize) or automatically via the .z.pi event hander.

Full Changelog

a82f6a9 http: Add URL encoding of query string fields and values
aeb996f http: Add PUT and DELETE requests
9bc06bc http: Add auto-parsing of JSON responses and support redirects
2b17893 Add new 'http' library as a replacement for .Q.hg / .Q.hp / .Q.hmb [#38]
5af6174 Add new WebSocket client connection library [#36]
ff3959a Add new 'terminal' library for automated console size tracking [#34]
f1bf144 util: Add new .util.isTlsAvailable