http

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package http is just sample

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string)

Get is get method using gorequest package

func GetRequestSimple

func GetRequestSimple(url string) (int, string, error)

GetRequestSimple is to send request by Get (just sample code)

func GetRequestWithData

func GetRequestWithData(reqURL string) (int, string, error)

GetRequestWithData is to request by GET with data using http.NewRequest

func HandleResponse

func HandleResponse(resp *http.Response) string

HandleResponse is to handle response

func PostRequest

func PostRequest(reqURL string, bytesMessage []byte) (int, string, error)

PostRequest is to request by POST using http.NewRequest

Types

This section is empty.

Jump to

Keyboard shortcuts

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