Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDefaultHttpHeader ¶ added in v1.0.19
func WriteDefaultHttpHeader(w http.ResponseWriter, ctx context.Context, statusCode int)
Types ¶
type HTTPSender ¶
type HTTPSender interface { // SetHTTPRequestHeaders sets up http request headers SetHTTPRequestHeaders(httpRequestHeaders map[string]string) // SetSecretData sets up http secret header SetSecretData(name, valueKey, headerName, valuePrefix string) // HTTPPost sends http POST request with data HTTPPost(dic *di.Container, data any) errors.Error }
HTTPSender is the interface for http requests
func NewHTTPSender ¶
func NewHTTPSender(url string, mimeType string) HTTPSender
NewHTTPSender creates, initializes and returns a new instance of HTTPSender
Click to show internal directories.
Click to hide internal directories.