SkyLine_Standard_Library_HTTP

package
v0.0.0-...-72c8661 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             _____ _____ _____ _____     _____                     _
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |_   _|_   _|  _  |___| __  |___ ___ _ _ ___ ___| |_ ___
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|     | | |   | | |   __|___|    -| -_| . | | | -_|_ -|  _|_ -|
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__| |_|   |_| |__|      |__|__|___|_  |___|___|___|_| |___|
primary units that define the functions to register the sub func's  //            |___|                                     |_____|               |_|

////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             _____ _____ _____ _____     _____                     _
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |_   _|_   _|  _  |___| __  |___ ___ _ _ ___ ___| |_ ___
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|     | | |   | | |   __|___|    -| -_| . | | | -_|_ -|  _|_ -|
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__| |_|   |_| |__|      |__|__|___|_  |___|___|___|_| |___|
primary units that define the functions to register the sub func's  //            |___|                                     |_____|               |_|

////////////////////////////////////////////////////////////////////////

Def -> This file defines all functions to make a request to specific targets or to craft specific HTTP requests

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             _____ _____ _____ _____     _____                     _
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |_   _|_   _|  _  |___| __  |___ ___ _ _ ___ ___| |_ ___
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|     | | |   | | |   __|___|    -| -_| . | | | -_|_ -|  _|_ -|
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__| |_|   |_| |__|      |__|__|___|_  |___|___|___|_| |___|
primary units that define the functions to register the sub func's  //            |___|                                     |_____|               |_|

////////////////////////////////////////////////////////////////////////

Def -> Like all model files, this file holds all models and data types and constants

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             _____ _____ _____ _____     _____                     _
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |_   _|_   _|  _  |___| __  |___ ___ _ _ ___ ___| |_ ___
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|     | | |   | | |   __|___|    -| -_| . | | | -_|_ -|  _|_ -|
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__| |_|   |_| |__|      |__|__|___|_  |___|___|___|_| |___|
primary units that define the functions to register the sub func's  //            |___|                                     |_____|               |_|

////////////////////////////////////////////////////////////////////////

This file defines all transport related functions or methods to create and auto use specific HTTP requests

Index

Constants

View Source
const (
	HTTPMETHOD_GET     = http.MethodGet
	HTTPMETHOD_HEAD    = http.MethodHead
	HTTPMETHOD_POST    = http.MethodPost
	HTTPMETHOD_DELETE  = http.MethodDelete
	HTTPMETHOD_PUTS    = http.MethodPut
	HTTPMETHOD_PATCH   = http.MethodPatch
	HTTPMETHOD_CONNECT = http.MethodConnect
	HTTPMETHOD_TRACE   = http.MethodTrace
	HTTPMETHOD_OPTIONS = http.MethodOptions
)

Variables

This section is empty.

Functions

func Creator_CreateNewBody

func Creator_CreateNewBody(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func Creator_HttpNew

func Creator_HttpNew(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

Method fills the HttpRequest structure with data

func MakeBasePost

func MakeBasePost(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func MakeGet

func MakeGet(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func MakeNullPOST

func MakeNullPOST(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func MakeRequest

func MakeRequest() SkyEnv.SL_Object

func MakeTransPortRequest

func MakeTransPortRequest(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func NewTransport

func NewTransport(args ...SkyEnv.SL_Object) SkyEnv.SL_Object

func ReadResponseBody

func ReadResponseBody(bod *http.Response) map[SkyEnv.HashKey]SkyEnv.HashPair

func TorReq

func TorReq(proxy, target string) interface{}

var proxy string = "socks5://127.0.0.1:9050"

Types

type CustomTransport

type CustomTransport struct {
	Transport         *http.Transport
	SkipCertificate   bool
	ProxyURL          *url.URL
	ClientURL         string
	Method            string
	ResponseReaderBod io.Reader
}

:::::::::::::::::::::::::::::::::::::::::::::::::::::: :: CustomTransport is a method for making :: :: your own custom transport and HTTP options :: :: which is typically used for new request builders :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::

var TransportNewSL CustomTransport

func CreateTransport

func CreateTransport(requestURL string) (*CustomTransport, error)

func (*CustomTransport) MakeRequest

func (c *CustomTransport) MakeRequest(method string) (*http.Response, error)

func (*CustomTransport) SetProxy

func (c *CustomTransport) SetProxy(proxyURL string) error

type HTTPStructure

type HTTPStructure struct {
	Req_URL    string // Request URL
	Req_Method string // Request method
	Filename   string // If user wants output then this is the filename
	OutToFile  bool   // Output response body to file
	TorProx    string // SOCKS proxy to use
	Headers    []string
	Tor        bool // Use tor

}

::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: HTTPStructure is a structure for easy manipulation :: :: of HTTP requests, this allows users to change :: :: the way http requests are done :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::

var (
	Httpstruct HTTPStructure
)

Jump to

Keyboard shortcuts

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