You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/WalterPaes/go-http-lib

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/WalterPaes/go-http-lib

v1.0.1
Source
Go
Version published
Created
Source

License: MIT

go-http-lib

Import and Usage

go get github.com/WalterPaes/go-http-lib

Create a New Request

request := New("http://yoururl.com", &http.Client{})

Add Header

request.AddHeader("foo", "bar")

Do POST request

request.Post("/path", map[string]string{"foo": "bar"})

Do GET request

request.Get("/path", map[string]string{"foo": "bar"})

Json Decode

request.Json()

Parse to Interface

request.Decode(map[string]string{})

:rocket: Technologies

This project was developed with the following technologies:

  • Go
  • GoLand

Made by Walter Junior

FAQs

Package last updated on 09 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts