{"id":14966149,"url":"https://github.com/tokuhirom/p6-http-server-tiny","last_synced_at":"2025-10-25T16:30:35.278Z","repository":{"id":66437493,"uuid":"42553897","full_name":"tokuhirom/p6-HTTP-Server-Tiny","owner":"tokuhirom","description":"Web application server for Perl6","archived":false,"fork":false,"pushed_at":"2018-04-30T14:51:34.000Z","size":210,"stargazers_count":18,"open_issues_count":4,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-31T07:51:27.690Z","etag":null,"topics":["perl6"],"latest_commit_sha":null,"homepage":"","language":"Perl 6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tokuhirom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-15T23:59:50.000Z","updated_at":"2022-04-15T14:05:46.000Z","dependencies_parsed_at":"2023-02-20T19:46:11.426Z","dependency_job_id":null,"html_url":"https://github.com/tokuhirom/p6-HTTP-Server-Tiny","commit_stats":{"total_commits":212,"total_committers":16,"mean_commits":13.25,"dds":"0.24056603773584906","last_synced_commit":"150aaa730b0a442db08cf2da2314662cd77de74f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp6-HTTP-Server-Tiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp6-HTTP-Server-Tiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp6-HTTP-Server-Tiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokuhirom%2Fp6-HTTP-Server-Tiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokuhirom","download_url":"https://codeload.github.com/tokuhirom/p6-HTTP-Server-Tiny/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238174090,"owners_count":19428624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perl6"],"created_at":"2024-09-24T13:35:55.697Z","updated_at":"2025-10-25T16:30:34.891Z","avatar_url":"https://github.com/tokuhirom.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/tokuhirom/p6-HTTP-Server-Tiny.svg?branch=master)](https://travis-ci.org/tokuhirom/p6-HTTP-Server-Tiny)\n\nNAME\n====\n\nHTTP::Server::Tiny - a simple HTTP server for Perl6\n\nSYNOPSIS\n========\n\n    use HTTP::Server::Tiny;\n\n    my $port = 8080;\n\n    # Only listen for connections from the local host\n    # if you want this to be accessible from another\n    # host then change this to '0.0.0.0'\n    my $host = '127.0.0.1';\n\n    HTTP::Server::Tiny.new(:$host , :$port).run(sub ($env) {\n        my $channel = Channel.new;\n        start {\n            for 1..100 {\n                $channel.send(($_ ~ \"\\n\").Str.encode('utf-8'));\n            }\n            $channel.close;\n        };\n        return 200, ['Content-Type' =\u003e 'text/plain'], $channel\n    });\n\nDESCRIPTION\n===========\n\nHTTP::Server::Tiny is a standalone HTTP/1.1 web server for perl6.\n\nMETHODS\n=======\n\n  * `HTTP::Server::Tiny.new($host, $port)`\n\nCreate new instance.\n\n  * `$server.run(Callable $app, Promise :$control-promise)`\n\nRun http server with P6W app. The named parameter `control-promise` if provided, can be *kept* to quit the server loop, which may be useful if the server is run asynchronously to the main thread of execution in an application.\n\nIf the optional named parameter `control-promise` is provided with a `Promise` then the server loop will be quit when the promise is kept.\n\nVERSIONING RULE\n===============\n\nThis module respects [Semantic versioning](http://semver.org/)\n\nTODO\n====\n\n  * Support timeout\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2015, 2016 Tokuhiro Matsuno \u003ctokuhirom@gmail.com\u003e\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokuhirom%2Fp6-http-server-tiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokuhirom%2Fp6-http-server-tiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokuhirom%2Fp6-http-server-tiny/lists"}