asg017/sqlite-http

Add new `http_clients` virtual table

Opened this issue · 0 comments

.load http0
insert into http_clients(name, headers, rate_limit)
  select 
    'github_api', 
    http_headers('User-Agent', 'xxx/1.0.0', 'X-Api-Key', '...'),
    100;

select http_get(
  'https://api.github.com/....', 
  null, 
  null, 
  null, 
  json_object('client', 'github_api')
);