package
1.6.4
Repository: https://github.com/aldelo/common.git
Documentation: pkg.go.dev

# Functions

AppendServerCAPemFiles adds self-signed server ca pems to local cache, and then recreates the clientTlsConfig object based on the new list of CAs.
DELETE sends url delete request to host and performs delete action (no body expected) Default Header = Content-Type: application/x-www-form-urlencoded JSON Content-Type Header: Content-Type: application/json.
DELETEProtoBuf sends url delete request to host, and retrieves response via protobuf object as an output pointer parameter default header if not specified: Content-Type: application/x-protobuf.
GET sends url get request to host and retrieve the body response in string.
GETProtoBuf sends url get request to host, and retrieves response via protobuf object as an output pointer parameter default header if not specified: Content-Type: application/x-protobuf.
POST
POST sends url post request to host and retrieve the body response in string Default Header = Content-Type: application/x-www-form-urlencoded JSON Content-Type Header: Content-Type: application/json.
POSTProtoBuf sends url post request to host, with body content in protobuf pointer object, and retrieves response in protobuf object as output pointer parameter default header if not specified: Content-Type: application/x-protobuf.
PUT sends url put request to host and retrieve the body response in string Default Header = Content-Type: application/x-www-form-urlencoded JSON Content-Type Header: Content-Type: application/json.
PUTProtoBuf sends url put request to host, with body content in protobuf pointer object, and retrieves response in protobuf object as output pointer parameter default header if not specified: Content-Type: application/x-protobuf.
ResetServerCAPemFiles first clears serverCaPems cache, then adds self-signed server ca pems to local cache, then recreates the clientTlsConfig object based on the new list of CAs.

# Structs

HeaderKeyValue is struct used for containing http header element key value pair.