requests

package module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 4 Imported by: 0

README

requests

A simple customisable requests package for making requests in go.

Documentation

Overview

Package gorequests provides http client implementations.

Request make GET,POST,PUT,PATCH requests.

Example

res, body, err := requests.Request(u,nil,gorequests.GET)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(url url.URL, req interface{}, methods ...Method) (res *http.Response, body string, err error)

Types

type Method

type Method string
const (
	GET    Method = "GET"
	POST   Method = "POST"
	PUT    Method = "PUT"
	PATCH  Method = "PATCH"
	DELETE Method = "DELETE"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL