{"id":23255907,"url":"https://github.com/pzixel/test-actix-multipath","last_synced_at":"2026-06-30T21:31:03.843Z","repository":{"id":91427186,"uuid":"331044513","full_name":"Pzixel/test-actix-multipath","owner":"Pzixel","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-19T16:45:40.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T10:44:07.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Pzixel.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":"2021-01-19T16:39:36.000Z","updated_at":"2021-01-19T16:45:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1fb9770-0fc3-454c-95bb-a503000be03f","html_url":"https://github.com/Pzixel/test-actix-multipath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pzixel/test-actix-multipath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzixel%2Ftest-actix-multipath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzixel%2Ftest-actix-multipath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzixel%2Ftest-actix-multipath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzixel%2Ftest-actix-multipath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pzixel","download_url":"https://codeload.github.com/Pzixel/test-actix-multipath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzixel%2Ftest-actix-multipath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34984784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-19T11:32:53.958Z","updated_at":"2026-06-30T21:31:03.819Z","avatar_url":"https://github.com/Pzixel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Run two querties:\r\n\r\n```bash\r\ncurl \"http://localhost:8800/foo\" --verbose\r\n```\r\n```bash\r\ncurl -X PUT \"http://localhost:8800/foo\" -d \"{}\" --verbose\r\n```\r\n\r\nSee one o them working properly and another one failing with 405:\r\n\r\n```bash\r\npzixe@ZPC MINGW64\r\n$ curl \"http://localhost:8800/foo\" --verbose\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1:8800...\r\n*   Trying 127.0.0.1:8800...\r\n* Connected to localhost (127.0.0.1) port 8800 (#0)\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\u003e GET /foo HTTP/1.1\r\n\u003e Host: localhost:8800\r\n\u003e User-Agent: curl/7.69.1\r\n\u003e Accept: */*\r\n\u003e\r\n* Mark bundle as not supporting multiuse\r\n\u003c HTTP/1.1 200 OK\r\n\u003c content-length: 0\r\n\u003c date: Tue, 19 Jan 2021 16:35:59 GMT\r\n\u003c\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n* Connection #0 to host localhost left intact\r\n\r\npzixe@ZPC MINGW64\r\n$ curl -X PUT \"http://localhost:8800/foo\" -d \"{}\" --verbose\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1:8800...\r\n*   Trying 127.0.0.1:8800...\r\n* Connected to localhost (127.0.0.1) port 8800 (#0)\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\u003e PUT /foo HTTP/1.1\r\n\u003e Host: localhost:8800\r\n\u003e User-Agent: curl/7.69.1\r\n\u003e Accept: */*\r\n\u003e Content-Length: 2\r\n\u003e Content-Type: application/x-www-form-urlencoded\r\n\u003e\r\n} [2 bytes data]\r\n* upload completely sent off: 2 out of 2 bytes\r\n* Mark bundle as not supporting multiuse\r\n\u003c HTTP/1.1 405 Method Not Allowed\r\n\u003c content-length: 0\r\n\u003c date: Tue, 19 Jan 2021 16:36:04 GMT\r\n\u003c\r\n100     2    0     0  100     2      0      9 --:--:-- --:--:-- --:--:--     9\r\n* Connection #0 to host localhost left intact\r\n```\r\n\r\nNow if you change paths to\r\n\r\n```rust\r\nApp::new()\r\n    .my_route(\r\n        \"/foo\",\r\n        web::get().to(|| HttpResponse::Ok().finish()),\r\n    )\r\n    .my_route(\r\n        \"/foo1\",\r\n        web::put().to(|| HttpResponse::Ok().finish()),\r\n    )\r\n```\r\n\r\nIt suddently starts to work:\r\n\r\n```bash\r\npzixe@ZPC MINGW64\r\n$ curl \"http://localhost:8800/foo\" --verbose\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1:8800...\r\n*   Trying 127.0.0.1:8800...\r\n* Connected to localhost (127.0.0.1) port 8800 (#0)\r\n\u003e GET /foo HTTP/1.1\r\n\u003e Host: localhost:8800\r\n\u003e User-Agent: curl/7.69.1\r\n\u003e Accept: */*\r\n\u003e\r\n* Mark bundle as not supporting multiuse\r\n\u003c HTTP/1.1 200 OK\r\n\u003c content-length: 0\r\n\u003c date: Tue, 19 Jan 2021 16:42:11 GMT\r\n\u003c\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n* Connection #0 to host localhost left intact\r\n\r\npzixe@ZPC MINGW64\r\n$ curl -X PUT \"http://localhost:8800/foo1\" -d \"{}\" --verbose\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1:8800...\r\n*   Trying 127.0.0.1:8800...\r\n* Connected to localhost (127.0.0.1) port 8800 (#0)\r\n\u003e PUT /foo1 HTTP/1.1\r\n\u003e Host: localhost:8800\r\n\u003e User-Agent: curl/7.69.1\r\n\u003e Accept: */*\r\n\u003e Content-Length: 2\r\n\u003e Content-Type: application/x-www-form-urlencoded\r\n\u003e\r\n} [2 bytes data]\r\n* upload completely sent off: 2 out of 2 bytes\r\n* Mark bundle as not supporting multiuse\r\n\u003c HTTP/1.1 200 OK\r\n\u003c content-length: 0\r\n\u003c date: Tue, 19 Jan 2021 16:42:17 GMT\r\n\u003c\r\n100     2    0     0  100     2      0      9 --:--:-- --:--:-- --:--:--     9\r\n* Connection #0 to host localhost left intact\r\n\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpzixel%2Ftest-actix-multipath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpzixel%2Ftest-actix-multipath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpzixel%2Ftest-actix-multipath/lists"}