All Projects → edoger → zkits-requester

edoger / zkits-requester

Licence: Apache-2.0 license
Zero dependency HTTP client.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to zkits-requester

Rump
REST client for Java that allows for easy configuration and default values. Allows for quick request construction and a huge range of modifications by using response/request interceptors, adjusting default values related to HTTP requests and creating custom instances for when you need multiple API connection setups.
Stars: ✭ 55 (+323.08%)
Mutual labels:  http-client
sugar
Declarative HTTP client for Golang
Stars: ✭ 25 (+92.31%)
Mutual labels:  http-client
hedgedhttp
Hedged HTTP client which helps to reduce tail latency at scale.
Stars: ✭ 103 (+692.31%)
Mutual labels:  http-client
vuejs-uploader
Vue multipart file uploader
Stars: ✭ 62 (+376.92%)
Mutual labels:  uploader
simplehttp
HTTP client for Elixir without dependencies
Stars: ✭ 16 (+23.08%)
Mutual labels:  http-client
direwolf
Package direwolf is a convenient and easy to use http client written in Golang.
Stars: ✭ 44 (+238.46%)
Mutual labels:  http-client
EthernetWebServer SSL
Simple TLS/SSL Ethernet WebServer, HTTP Client and WebSocket Client library for for AVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, ENC28J60 or Teensy 4.1 NativeEthernet/QNEthernet. It now supports Ethernet TLS/SSL Client. The library supports …
Stars: ✭ 40 (+207.69%)
Mutual labels:  http-client
statoo
`statoo` is a super simple http GET tool for checking site health
Stars: ✭ 28 (+115.38%)
Mutual labels:  http-client
instatron
A simple Instagram desktop uploader & client app build with electron.Mobile Instagram on desktop!
Stars: ✭ 95 (+630.77%)
Mutual labels:  uploader
android-http-client
Simple and lightweight HTTP client for Android
Stars: ✭ 13 (+0%)
Mutual labels:  http-client
mega-link-downloader-bot
A telegram bot to download mega.nz links. (made with pyrogram).
Stars: ✭ 180 (+1284.62%)
Mutual labels:  uploader
hackernews
📰 HackerNews API
Stars: ✭ 40 (+207.69%)
Mutual labels:  http-client
matador
Take your appclication by the horns
Stars: ✭ 59 (+353.85%)
Mutual labels:  http-client
http
ponylang HTTP client library 🐴 🕸️
Stars: ✭ 38 (+192.31%)
Mutual labels:  http-client
req
Req is a batteries-included HTTP client for Elixir.
Stars: ✭ 453 (+3384.62%)
Mutual labels:  http-client
typesense-dart
Dart client for Typesense
Stars: ✭ 50 (+284.62%)
Mutual labels:  http-client
go-sse
Fully featured, spec-compliant HTML5 server-sent events library
Stars: ✭ 165 (+1169.23%)
Mutual labels:  http-client
Shareaza
Shareaza is a peer-to-peer client for Windows that allows you to download any file-type found on several popular P2P networks.
Stars: ✭ 103 (+692.31%)
Mutual labels:  http-client
fennch
Modern fetch-based axios-like HTTP client for the browser and node.js
Stars: ✭ 12 (-7.69%)
Mutual labels:  http-client
sync-deploy
🔄 shell toolkit for deploying script/command task on remote host, including up/download files, run script on remote
Stars: ✭ 20 (+53.85%)
Mutual labels:  uploader

ZKits Requester Library

ZKits Build Status Build status Coverage Status Codacy Badge Go Report Card Golang Version

About

This package is a library of ZKits project. This library provides an efficient and easy-to-use HTTP client.

Install

go get -u -v github.com/edoger/zkits-requester

Usage

package main

import (
    "fmt"

    "github.com/edoger/zkits-requester"
)

func main() {
    client := requester.Default()

    // client.Get("https://test.com", nil)
    res, err := client.New("https://test.com").Get()
    if err != nil {
        panic(err)
    }
    fmt.Println(res.String())

    data := map[string]interface{}{"key": "value"}
    // client.PostJSON("https://test.com", data)
    res, err = client.New("https://test.com").WithJSONBody(data).Post()
    if err != nil {
        panic(err)
    }

    obj := make(map[string]interface{})
    // Bind response json to object.
    if err = res.JSON(&obj); err != nil {
        panic(err)
    }

    // client.UploadFile("https://test.com", "upload", "path/to/file")
    res, err = client.New("https://test.com").WithFormDataFile("upload", "path/to/file").Upload()
    if err != nil {
        panic(err)
    }
    fmt.Println(res.String())
}

License

Apache-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].