{"id":23010030,"url":"https://github.com/dmdhrumilmistry/fasthttpclient","last_synced_at":"2025-04-02T16:15:07.372Z","repository":{"id":242189738,"uuid":"807213397","full_name":"dmdhrumilmistry/fasthttpclient","owner":"dmdhrumilmistry","description":"fasthttpclient makes it easy for devs to make HTTP calls.","archived":false,"fork":false,"pushed_at":"2025-03-15T09:01:56.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T05:42:21.047Z","etag":null,"topics":["fasthttp","fasthttpclient","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dmdhrumilmistry.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-05-28T17:10:23.000Z","updated_at":"2025-03-15T09:01:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"895ccbe2-09e7-4c21-b6ae-a6f0343539d4","html_url":"https://github.com/dmdhrumilmistry/fasthttpclient","commit_stats":null,"previous_names":["dmdhrumilmistry/fasthttpclient"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Ffasthttpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Ffasthttpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Ffasthttpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Ffasthttpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmdhrumilmistry","download_url":"https://codeload.github.com/dmdhrumilmistry/fasthttpclient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847137,"owners_count":20843444,"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":["fasthttp","fasthttpclient","go","golang"],"created_at":"2024-12-15T09:16:46.722Z","updated_at":"2025-04-02T16:15:07.328Z","avatar_url":"https://github.com/dmdhrumilmistry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastHttpClient\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/dmdhrumilmistry/fasthttpclient/blob/master/LICENSE)\n\nFastHttpClient is a lightweight and high-performance HTTP client for sending requests.\n\n## Features\n\n- Simple and intuitive API\n- Fast and efficient\n- Supports various HTTP methods (GET, POST, PUT, DELETE, etc.)\n- Use as Package\n- Client with Rate Limiting option\n\n## Usage\n\n- Add project to dependency\n\n    ```bash\n    go get github.com/dmdhrumilmistry/fasthttpclient\n    ```\n\n- Without Rate Limit\n\n    ```go\n    package main\n\n    import (\n        \"log\"\n\n        \"github.com/dmdhrumilmistry/fasthttpclient/client\"\n        \"github.com/valyala/fasthttp\"\n    )\n\n    func main() {\n        // Create a new FHClient without any rate limit\n        fhc := client.NewFHClient(\u0026fasthttp.Client{})\n\n        queryParams := map[string]string{\n            \"queryParam1\": \"value1\",\n            \"queryParam2\": \"value2\",\n        }\n\n        // use fhc to make a GET request\n        resp, err := client.Get(fhc, \"https://example.com\", queryParams, nil)\n        if err != nil {\n            log.Fatalln(err)\n        }\n\n        log.Println(resp.StatusCode)\n        log.Println(resp.Headers)\n        log.Println(string(resp.Body))\n        log.Println(resp.CurlCommand)\n    }\n    ```\n\n- Using Rate Limit 100 requests/1sec\n\n    ```go\n    package main\n\n    import (\n        \"log\"\n\n        \"github.com/dmdhrumilmistry/fasthttpclient/client\"\n        \"github.com/valyala/fasthttp\"\n    )\n\n    func main() {\n        // Create a new RateLimitedClient with 100 requests per second\n        rlclient := client.NewRateLimitedClient(100, 1, \u0026fasthttp.Client{})\n\n        queryParams := map[string]string{\n            \"queryParam1\": \"value1\",\n            \"queryParam2\": \"value2\",\n        }\n\n        headers := map[string]string{\n            \"Content-Type\": \"application/json\",\n        }\n\n        body := []byte(`{\"key\": \"value\"}`)\n\n        resp, err := client.Post(rlclient, \"https://example.com\", queryParams, headers, body)\n        if err != nil {\n            log.Fatalln(err)\n        }\n\n        log.Println(resp.StatusCode)\n        log.Println(resp.Headers)\n        log.Println(string(resp.Body))\n        log.Println(resp.CurlCommand)\n    }\n    ```\n\n- View all [examples](./examples/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Ffasthttpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmdhrumilmistry%2Ffasthttpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Ffasthttpclient/lists"}