{"id":15954287,"url":"https://github.com/michallaskowski/mokttp","last_synced_at":"2025-03-18T00:30:21.073Z","repository":{"id":57731171,"uuid":"273955538","full_name":"michallaskowski/mokttp","owner":"michallaskowski","description":"Kotlin Multiplatform wrapper for local HTTP server. Wraps MockWebServer and GCDWebServer under one common interface.","archived":false,"fork":false,"pushed_at":"2020-07-27T13:21:12.000Z","size":208,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T15:54:03.094Z","etag":null,"topics":["http","kotlin-multiplatform","mock","stub"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michallaskowski.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}},"created_at":"2020-06-21T17:48:37.000Z","updated_at":"2024-07-03T02:58:58.000Z","dependencies_parsed_at":"2022-09-26T22:01:49.129Z","dependency_job_id":null,"html_url":"https://github.com/michallaskowski/mokttp","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/michallaskowski%2Fmokttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michallaskowski%2Fmokttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michallaskowski%2Fmokttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michallaskowski%2Fmokttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michallaskowski","download_url":"https://codeload.github.com/michallaskowski/mokttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244133369,"owners_count":20403406,"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":["http","kotlin-multiplatform","mock","stub"],"created_at":"2024-10-07T13:16:57.598Z","updated_at":"2025-03-18T00:30:20.009Z","avatar_url":"https://github.com/michallaskowski.png","language":"Kotlin","readme":"# Mokttp\n\n## What is it\n\nMokttp is Kotlin Multiplatform wrapper around libraries that are creating a local web server. On Android it wraps [OkHttp's MockWebServer](https://github.com/square/okhttp/tree/master/mockwebserver/), on iOS it's [GCDWebServer](https://github.com/swisspol/GCDWebServer).\n\nIt is not a desired and final solution, since there is an additional setup needed on Kotlin Native for GCDWebServer, and the ideal approach would be to use [Ktor Server when it supports platforms other than JVM](https://github.com/ktorio/ktor/issues/571).\n\n## When it can be useful\n\nThe main goal is to enable mocking and stubbing server response for UI testing, in combination with [Kuiks](https://github.com/michallaskowski/kuiks). But if you find having a local HTTP server useful in your app, feel free to use it.\n\n## How to build and launch samples\n\nClone the repo first.\nThe samples contain simple segmented control/radio buttons and a button to make a call to real or mocked servers. Currently it lists contributors from the [Kuiks](https://github.com/michallaskowski/kuiks) project, which can be also provided by a local HTTP server.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. \nPlease make sure to update samples as appropriate.\n\n## Roadmap\n\n* Make sure it works well with Kuiks, and enhance if needs arise.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichallaskowski%2Fmokttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichallaskowski%2Fmokttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichallaskowski%2Fmokttp/lists"}