add first version of the UI
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3ddf295e34
commit
ca59f1e25f
7 changed files with 252 additions and 0 deletions
|
@ -29,3 +29,8 @@ func HandleResponse(w http.ResponseWriter, r *http.Request, returncode int, cont
|
|||
contextedReq := r.WithContext(context.WithValue(r.Context(), ResponseInfoKey, ResponseInfo{ReturnCode: returncode, ContentLength: len(content)}))
|
||||
*r = *contextedReq
|
||||
}
|
||||
|
||||
func AddToContext(r *http.Request, returncode, contentLength int) {
|
||||
contextedReq := r.WithContext(context.WithValue(r.Context(), ResponseInfoKey, ResponseInfo{ReturnCode: returncode, ContentLength: contentLength}))
|
||||
*r = *contextedReq
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue