Skip to content

[Feature Request] to close the response output stream early: "response:eof()" #4

Description

@diyism

In nginx-lua/openresty, I can close the http response early (avoid my users waiting) and continue doing things that cost time on my server:

ngx.say("bye bye, my user")
ngx.eof()
local http=require"httpc".create()
http:request{method="GET", url="https://a web page of very long content"}
local data,err=http:read"*a"

Does the Mako web server have such an API? for example: response:eof()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions