package kernel.http; using lua.Table; class HTTPResponse { public final statusCode:StatusCode; public final headers:Map; public final body:String; @:allow(kernel.http) private function new(handle: cc.HTTP.HTTPResponse) { this.statusCode = handle.getResponseCode(); this.headers = handle.getResponseHeaders().toMap(); this.body = handle.readAll(); } }