// ___ ____ ___ ___ // \ \ / / | _ | __| \ \ / / || | __ || || _ | // \ \/ / |___ | |__ \ \/ / || |___ || ||___| // \ / | _ | _ | \ / || __ | || ||\\ // \/ |___ |___ | \/ || ____| || || \\ // // Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License // Repo: https://git.pbiernat.dev/golang/vegvisir package cache import "github.com/valyala/fasthttp" type ResponseCache struct { URL string Method string Body []byte Code int Headers *fasthttp.ResponseHeader } func NewResponseCache(url, method string, body []byte, code int, headers *fasthttp.ResponseHeader) *ResponseCache { return &ResponseCache{url, method, body, code, headers} } //func (r *ResponseCache) StatusCode() int { // return r.Code //} // //func (r *ResponseCache) Body() []byte { // return r.Body //}