httpproxy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package httpproxy is a package that provides a http proxy for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

type Http interface {
	Get(url string) (*ResponseInstance, error)
}

Http is an interface for http.

func New

func New() Http

New is a constructor for HttpProxy.

type HttpProxy

type HttpProxy struct{}

HttpProxy is a struct that implements Http.

func (*HttpProxy) Get

func (*HttpProxy) Get(url string) (*ResponseInstance, error)

Get is a proxy for http.Get.

type ResponseInstance

type ResponseInstance struct {
	FieldResponse *http.Response
}

ResponseInstance is a struct that implements ResponseInstanceInterface.

type ResponseInstanceInterface

type ResponseInstanceInterface interface{}

ResponseInstanceInterface is an interface for http.Response.

Jump to

Keyboard shortcuts

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