8000 GitHub - aditya109/brimstone
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aditya109/brimstone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brimstone 🔥


A wrapper for default HTTP client.

Sometimes different problems require different solutions.

Getting started

  1. With Go module support, add the following import:
    import "github.com/aditya109/brimstone"
  2. To use the package, we need to apply using the following code:
    package test
    
    import (
       "github.com/aditya109/brimstone"
       "net/http"
    )
    
    func foo() {
       var params = brimstone.SplintParameters{
          ClientParams: brimstone.ClientParams{
             BaseURL:                        "https://reqres.in",
             Username:                       "",
             Password:            
    5497
               "",
             RequestTimeoutInSeconds:        5,
             Name:                           "REQRES",
             InsecureSkipVerify:             false,
             ShouldHaveAuthenticationHeader: false,
          },
          RequestParams: brimstone.RequestParams{
             URLParams: brimstone.URLParams{
                Path:       "/api/register",
                MethodType: http.MethodPost,
             },
             HTTPVariables: brimstone.HTTPVariables{
                QueryParams: nil,
                UriParams:   nil,
                Headers:     nil,
                Payload: map[string]interface{}{
                   "email":    "eve.holt@reqres.in",
                   "password": "pistol",
                },
             },
          },
       }
       bytes, response, err:= params.Strike(nil)
       if err != nil {
       // handle error
       }
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0