π§±More into responses
Page description (optional)
r.Get("/", http.Respond)Response methods
Code(status.Code) *http.Response
Code(status.Code) *http.ResponseStatus(status.Status) *http.Response
Status(status.Status) *http.ResponseContentType(ct mime.MIME, charset ...mime.Charset) *http.Response
ContentType(ct mime.MIME, charset ...mime.Charset) *http.ResponseCompression(token string) *http.Response
Compression(token string) *http.ResponseCompress() *http.Response
Compress() *http.ResponseHeader(key string, value ...string) *http.Response
Header(key string, value ...string) *http.ResponseHeaders(map[string][]string) *http.Response
Headers(map[string][]string) *http.ResponseString(string) *http.Response
String(string) *http.ResponseBytes([]byte) *http.Response
Bytes([]byte) *http.ResponseWrite([]byte) (n int, err error)
Write([]byte) (n int, err error)TryFile(path string) (*http.Response, error)
TryFile(path string) (*http.Response, error)File(path string) *http.Response
File(path string) *http.ResponseStream(io.Reader) *http.Response
Stream(io.Reader) *http.ResponseCookie(cookies ...cookie.Cookie) *http.Response
Cookie(cookies ...cookie.Cookie) *http.ResponseTryJSON(any) (*http.Response, error)
TryJSON(any) (*http.Response, error)JSON(any) *http.Response
JSON(any) *http.ResponseError(error, ...status.Code) *http.Response
Error(error, ...status.Code) *http.ResponseExpose() response.Fields
Expose() response.FieldsClear() *http.Response
Clear() *http.ResponseLast updated