You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
244 B
12 lines
244 B
package response
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// Empty makes a 204 response without a body
|
|
func Empty(writer http.ResponseWriter) {
|
|
writer.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
writer.WriteHeader(204)
|
|
writer.Write([]byte{})
|
|
}
|