2021-07-09 18:32:27 +02:00
|
|
|
// ___ ____ ___ ___
|
|
|
|
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
|
|
|
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
|
|
|
// \ / | _ | _ | \ / || __ | || ||\\
|
|
|
|
// \/ |___ |___ | \/ || ____| || || \\
|
2021-07-23 16:10:37 +02:00
|
|
|
//
|
2021-07-09 18:32:27 +02:00
|
|
|
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
|
|
|
|
// Repo: https://git.pbiernat.dev/golang/vegvisir
|
|
|
|
|
2021-11-15 21:41:38 +01:00
|
|
|
// Package client all available clients lives here (httpo, https, grpc etc.)
|
2021-07-23 16:10:37 +02:00
|
|
|
package client
|
2021-08-03 00:13:14 +02:00
|
|
|
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
|
|
|
|
// HTTPClient struct
|
|
|
|
type HTTPClient struct {
|
|
|
|
context *fasthttp.RequestCtx
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewHTTPClient function
|
|
|
|
func NewHTTPClient(ctx *fasthttp.RequestCtx) *HTTPClient {
|
|
|
|
return &HTTPClient{
|
|
|
|
context: ctx,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// func (c *HTTPClient)
|