• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jeffotoni / quick / 214

04 Mar 2025 07:11AM UTC coverage: 49.209% (-26.0%) from 75.221%
214

push

circleci

jeffotoni
Merge branch 'feature/refactory_http_client'

new version http client

32 of 1275 new or added lines in 44 files covered. (2.51%)

15 existing lines in 1 file now uncovered.

1803 of 3664 relevant lines covered (49.21%)

2724.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/example/quick.http.client/postform/main.go
1
package main
2

3
import (
4
        "encoding/json"
5
        "fmt"
6
        "log"
7
        "net/url"
8

9
        "github.com/jeffotoni/quick/http/client"
10
)
11

NEW
12
func main() {
×
NEW
13

×
NEW
14
        // Declare Values
×
NEW
15
        formData := url.Values{}
×
NEW
16
        formData.Set("username", "quick_user")
×
NEW
17
        formData.Set("password", "supersecret")
×
NEW
18

×
NEW
19
        resp, err := client.PostForm("http://localhost:3000/postform", formData)
×
NEW
20
        if err != nil {
×
NEW
21
                log.Fatalf("PostForm request with retry failed: %v", err)
×
NEW
22
        }
×
23

24
        // Unmarshal the JSON response (if applicable)
NEW
25
        var result map[string]any
×
NEW
26
        if err := json.Unmarshal(resp.Body, &result); err != nil {
×
NEW
27
                log.Fatal(err)
×
NEW
28
        }
×
NEW
29
        fmt.Println("POST response:", result)
×
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc