You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation doesn't describe using of the default HTTP client. However, default HTTP client is used in a real projects and in Tarantool Cookbook 1.
By default, Lua module http.client contains a default instance of http client and access to its methods is available using . :
-- Default HTTP client.localhttp=require('http.client')
http.get('https://luajit.org/') -- Access to methods via `.`.-- New HTTP client instance.localhttpc=http.new()
httpc:get('https://luajit.org/') -- Access to methods via `:`.