{"id":20573519,"url":"https://github.com/lightweight-component/aj-net","last_synced_at":"2025-06-21T09:39:18.827Z","repository":{"id":244052443,"uuid":"814131251","full_name":"lightweight-component/aj-net","owner":"lightweight-component","description":"A Small HTTP Request Component","archived":false,"fork":false,"pushed_at":"2024-11-12T09:42:33.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T21:25:08.303Z","etag":null,"topics":["http-requests"],"latest_commit_sha":null,"homepage":"","language":"Java","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/lightweight-component.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":"2024-06-12T11:58:56.000Z","updated_at":"2024-11-12T09:42:37.000Z","dependencies_parsed_at":"2024-06-12T17:07:22.042Z","dependency_job_id":"0af9b229-6722-40bc-adeb-e2bd436fc664","html_url":"https://github.com/lightweight-component/aj-net","commit_stats":null,"previous_names":["lightweight-component/aj-net"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightweight-component%2Faj-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightweight-component","download_url":"https://codeload.github.com/lightweight-component/aj-net/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242189642,"owners_count":20086603,"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-requests"],"created_at":"2024-11-16T05:27:59.478Z","updated_at":"2025-03-06T10:25:34.776Z","avatar_url":"https://github.com/lightweight-component.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/com.ajaxjs/aj-net?label=Latest%20Release)](https://central.sonatype.com/artifact/com.ajaxjs/aj-net)\n[![Javadoc](https://img.shields.io/badge/javadoc-1.4-brightgreen.svg?)](https://dev.ajaxjs.com/docs/javadoc/aj-net/)\n[![License](https://img.shields.io/badge/license-Apache--2.0-green.svg?longCache=true\u0026style=flat)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n[![Email](https://img.shields.io/badge/Contact--me-Email-orange.svg)](mailto:frank@ajaxjs.com)\n[![QQ群](https://framework.ajaxjs.com/static/qq.svg)](https://shang.qq.com/wpa/qunwpa?idkey=3877893a4ed3a5f0be01e809e7ac120e346102bd550deb6692239bb42de38e22)\n\n# A Small HTTP Request Component / 轻量级 HTTP 请求组件\n\nTutorial: https://framework.ajaxjs.com/docs/aj/?section=net.\n\nJava Documents: https://dev.ajaxjs.com/docs/javadoc/aj-net/.\n\n# Install\n\nRequires Java 1.8+, Maven Snippets:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ajaxjs\u003c/groupId\u003e\n    \u003cartifactId\u003eaj-net\u003c/artifactId\u003e\n    \u003cversion\u003e1.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n# Usage\n\n```java\n// 请求百度网站，返回网站的 HTML 内容\nString html = Get.get(\"https://www.baidu.com\").toString();\n\n// POST Map 参数\nString result = Post.post(\"http://localhost:8080/post.jsp\", new HashMap\u003cString, String\u003e() {\n    private static final long serialVersionUID = 1L;\n    {\n        put(\"foo\", \"bar\");\n    }\n});\n\n// POST 字符串参数\nresult = Post.post(\"http://localhost:8080/post\", \"a=1\u0026b=2\u0026c=3\");\n\n// api\nPost.api(...);\nPost.apiXML(...);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightweight-component%2Faj-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightweight-component%2Faj-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightweight-component%2Faj-net/lists"}