package quickjs:node-http;
world node-http {
export http-get: func(port: u16);
export http-post-json: func(port: u16);
export http-request-with-headers: func(port: u16);
export http-constants: func();
export http-self-connect: func();
export http-self-connect-post: func();
export http-request-body-completion: func() -> bool;
export http-abort-isolation: func() -> bool;
export http-response-cancellation: func(port: u16, test-case: u8) -> bool;
export http-response-lifecycle: func() -> bool;
export http-response-repeated-end-callbacks: func() -> bool;
export http-response-post-close-writes: func() -> bool;
export http-pipeline-backpressure: func() -> bool;
export http-pipeline-backpressure-profile: func() -> string;
export http-request-trailers: func() -> bool;
export http-request-trailer-errors: func() -> bool;
export http-pipelined-response-order: func() -> bool;
export http-expect-continue-flow: func() -> bool;
export http-half-open-pipelined-requests: func() -> bool;
export http-pipelined-close-lifecycle: func() -> bool;
export http-pipelined-connection-close: func() -> bool;
export http-pipelined-active-timeout: func() -> bool;
export http-close-idle-connections: func() -> bool;
export http-idle-resource-reclamation: func() -> bool;
export http-zero-keep-alive-timeout: func() -> bool;
export http-unread-request-body-disposal: func() -> bool;
export http-server-request-destroy: func() -> bool;
export http-partially-consumed-request-body: func() -> bool;
export http-resume-scheduled-request-body: func() -> bool;
export http-complete-unread-request-body: func() -> bool;
export http-client-response-ownership: func() -> bool;
export http-informational-write-after-close: func() -> bool;
export http-max-requests-closes-socket: func() -> bool;
export net-writev-boundaries: func() -> bool;
export net-write-timeout-lifecycle: func() -> bool;
export net-write-profile: func(chunk-size: u32, chunk-count: u32, corked: bool) -> string;
export http-pipelined-max-requests: func() -> bool;
export http-custom-connection-rejected: func() -> bool;
export http-response-persistence: func() -> bool;
export http-falsy-port-uses-protocol-default: func() -> bool;
export http-buffered-request-fin: func(test-case: u8) -> string;
export net-read-callback-turns: func(test-case: u8) -> string;
}