{"id":15293080,"url":"https://github.com/dizoftteam/dart_side","last_synced_at":"2025-03-24T12:40:24.085Z","repository":{"id":56827758,"uuid":"350707832","full_name":"DizoftTeam/dart_side","owner":"DizoftTeam","description":"Simple and Pure Dart Http Server","archived":false,"fork":false,"pushed_at":"2021-04-26T18:39:53.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T17:44:40.334Z","etag":null,"topics":["dart","http","http-server"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dart_side/score","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DizoftTeam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-23T12:41:18.000Z","updated_at":"2022-03-25T06:38:42.000Z","dependencies_parsed_at":"2022-09-20T22:55:00.275Z","dependency_job_id":null,"html_url":"https://github.com/DizoftTeam/dart_side","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fdart_side","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fdart_side/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fdart_side/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fdart_side/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DizoftTeam","download_url":"https://codeload.github.com/DizoftTeam/dart_side/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245273132,"owners_count":20588527,"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":["dart","http","http-server"],"created_at":"2024-09-30T16:39:43.361Z","updated_at":"2025-03-24T12:40:24.063Z","avatar_url":"https://github.com/DizoftTeam.png","language":"Dart","readme":"# Dart Side\n\n![](https://badgen.net/github/release/DizoftTeam/dart_side)\n![](https://badgen.net/github/stars/DizoftTeam/dart_side)\n![](https://badgen.net/github/forks/DizoftTeam/dart_side)\n![](https://badgen.net/github/issues/DizoftTeam/dart_side)\n![](https://badgen.net/github/open-issues/DizoftTeam/dart_side)\n![](https://badgen.net/github/license/DizoftTeam/dart_side)\n![](https://badgen.net/github/tag/DizoftTeam/dart_side)\n![](https://badgen.net/pub/v/dart_side)\n![](https://badgen.net/pub/likes/dart_side)\n![](https://badgen.net/pub/points/dart_side)\n![](https://badgen.net/pub/popularity/dart_side)\n![](https://badgen.net/pub/sdk-version/dart_side)\n\nSimple and Pure Dart Http server\n\n## Usage\n\nA simple usage example:\n\n```dart\nimport 'dart:io';\n\nimport 'package:dart_side/dart_side.dart';\n\nFuture\u003cvoid\u003e main() async {\n  final HttpServer server = await HttpServer.bind(\n    InternetAddress.loopbackIPv4,\n    4040,\n  );\n\n  print('Listening on localhost:${server.port}');\n\n  final DServer handler = new DServer();\n\n  handler.handle(\n    method: Method.GET,\n    handler: Handler(\n      path: '/v1/schedules',\n      callback: () {\n        // Somthing like Paginate list\n        return \u003cString, dynamic\u003e{\n          'items': \u003cString\u003e[\n            'schedule 1',\n            'schedule 2',\n            'schedule 3',\n            'schedule 4',\n            'schedule 5',\n          ],\n        };\n      },\n    ),\n  );\n\n  handler.handle(\n    method: Method.GET,\n    handler: Handler(\n      rPath: r'/v1/schedules/\\d+',\n      callback: () {\n        return \u003cString, dynamic\u003e{\n          'read': 'schedule',\n          'id': -1,\n        };\n      },\n    ),\n  );\n\n  await for (HttpRequest request in server) {\n    await handler.serve(request);\n  }\n}\n```\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker](https://github.com/DizoftTeam/dart_side/issues).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizoftteam%2Fdart_side","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizoftteam%2Fdart_side","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizoftteam%2Fdart_side/lists"}