http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (Module) Delete

func (h Module) Delete(url string, body interface{}) Response

func (Module) Get

func (h Module) Get(url string) Response

func (Module) Head

func (h Module) Head(url string) Response

func (Module) Post

func (h Module) Post(url, contentType string, body interface{}) Response

func (Module) Put

func (h Module) Put(url string, body interface{}) Response

func (Module) Request

func (h Module) Request(method, url string, reqBody interface{}) Response

type Response

type Response struct {
	Body       string
	Headers    map[string][]string
	StatusCode int
}

Jump to

Keyboard shortcuts

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