vegvisir/pkg/client/http.go

28 lines
748 B
Go
Raw Permalink Normal View History

// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
//
// 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.)
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)