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 defines all transport related functions or methods to create and auto use 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 -> 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
- func Creator_CreateNewBody(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func Creator_HttpNew(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func MakeBasePost(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func MakeGet(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func MakeNullPOST(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func MakeRequest() SkyEnv.SL_Object
- func MakeTransPortRequest(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func NewTransport(args ...SkyEnv.SL_Object) SkyEnv.SL_Object
- func ReadResponseBody(bod *http.Response) map[SkyEnv.HashKey]SkyEnv.HashPair
- func TorReq(proxy, target string) interface{}
- type CustomTransport
- type HTTPStructure
Constants ¶
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_HttpNew ¶
Method fills the HttpRequest structure with data
func MakeRequest ¶
func ReadResponseBody ¶
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
)