vegvisir/pkg/client/http.go
Piotr Biernat b0e492c163
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Fixes after code linters suggestions
2021-08-03 00:13:14 +02:00

27 lines
671 B
Go

// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
//
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
// Repo: https://git.pbiernat.dev/golang/vegvisir
package client
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)