1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
12 type LoginResponse struct {
13 RedirectLocation string
17 func (resp LoginResponse) ServeHTTP(w http.ResponseWriter, req *http.Request) {
18 if resp.RedirectLocation != "" {
19 w.Header().Set("Location", resp.RedirectLocation)
20 w.WriteHeader(http.StatusFound)
22 w.Write(resp.HTML.Bytes())