http handlers verb /v1/buckets
(w http.ResponseWriter, r *http.Request)
| 489 | |
| 490 | // verb /v1/buckets |
| 491 | func (t *target) bucketHandler(w http.ResponseWriter, r *http.Request) { |
| 492 | switch r.Method { |
| 493 | case http.MethodGet: |
| 494 | t.httpbckget(w, r) |
| 495 | case http.MethodDelete: |
| 496 | t.httpbckdelete(w, r) |
| 497 | case http.MethodPost: |
| 498 | t.httpbckpost(w, r) |
| 499 | case http.MethodHead: |
| 500 | t.httpbckhead(w, r) |
| 501 | default: |
| 502 | cmn.WriteErr405(w, r, http.MethodDelete, http.MethodGet, http.MethodHead, http.MethodPost) |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | // verb /v1/objects |
| 507 | func (t *target) objectHandler(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected