Skip to content
Discussion options

You must be logged in to vote

In mako, you would do the following to end the response (you defer the execution of the http client):

ba.thread.run(function()
  local http=require"httpc".create()
  http:request{method="GET", url="https://a-large-web-page"}
  local data,err=http:read"*a" end)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by surfskidude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4 on September 19, 2022 13:11.