- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 157 for wroteHeader (0.35 sec)
-
docs/iam/access-manager-plugin.go
func init() { flag.StringVar(&keyFile, "key-file", "", "Path to TLS cert key file") flag.StringVar(&certFile, "cert-file", "", "Path to TLS cert file") } func writeErrorResponse(w http.ResponseWriter, err error) { w.WriteHeader(http.StatusBadRequest) json.NewEncoder(w).Encode(map[string]string{ "error": fmt.Sprintf("%v", err), }) } type Result struct { Result bool `json:"result"` }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 08 17:15:20 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/proxy/healthcheck/service_health.go
resp.Header().Set("X-Content-Type-Options", "nosniff") resp.Header().Set("X-Load-Balancing-Endpoint-Weight", strconv.Itoa(count)) if count != 0 && kubeProxyHealthy { resp.WriteHeader(http.StatusOK) } else { resp.WriteHeader(http.StatusServiceUnavailable) } fmt.Fprint(resp, strings.Trim(dedent.Dedent(fmt.Sprintf(` { "service": { "namespace": %q, "name": %q },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 30 09:25:48 UTC 2023 - 8.9K bytes - Viewed (0) -
src/internal/coverage/encodecounter/encode.go
// if something went wrong somewhere with the write. func (cfw *CoverageDataWriter) Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error { if err := cfw.writeHeader(metaFileHash); err != nil { return err } return cfw.AppendSegment(args, visitor) } func padToFourByteBoundary(ws *slicewriter.WriteSeeker) error { sz := len(ws.BytesWritten()) zeros := []byte{0, 0, 0, 0}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0) -
tools/bug-report/pkg/archive/archive.go
} header.Name = strings.TrimPrefix(strings.Replace(file, srcDir, "", -1), string(filepath.Separator)) header.Size = fi.Size() header.Mode = int64(fi.Mode()) header.ModTime = fi.ModTime() if err := tw.WriteHeader(header); err != nil { return err } f, err := os.Open(file) if err != nil { return err } defer f.Close() if _, err := io.Copy(tw, f); err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 30 00:10:16 UTC 2023 - 3.2K bytes - Viewed (0) -
samples/extauthz/cmd/extauthz/main.go
response.Header().Set(receivedHeader, l) response.WriteHeader(http.StatusOK) } else { log.Printf("[HTTP][denied]: %s", l) response.Header().Set(resultHeader, resultDenied) response.Header().Set(overrideHeader, request.Header.Get(overrideHeader)) response.Header().Set(receivedHeader, l) response.WriteHeader(http.StatusForbidden) _, _ = response.Write([]byte(denyBody)) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 15 18:23:48 UTC 2024 - 10.4K bytes - Viewed (0) -
src/net/http/httptrace/trace.go
// each request header. At the time of this call the values // might be buffered and not yet written to the network. WroteHeaderField func(key string, value []string) // WroteHeaders is called after the Transport has written // all request headers. WroteHeaders func() // Wait100Continue is called if the Request specified // "Expect: 100-continue" and the Transport has written the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/net/http/serve_test.go
exitHandler := make(chan bool, 1) defer close(exitHandler) lastLine := make(chan int, 1) sh := HandlerFunc(func(w ResponseWriter, r *Request) { w.WriteHeader(404) w.WriteHeader(404) w.WriteHeader(404) w.WriteHeader(404) _, _, line, _ := runtime.Caller(0) lastLine <- line <-exitHandler }) if !tt.mustTimeout { exitHandler <- true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/archive/tar/common.go
// Some fields may not be populated. // // For forward compatibility, users that retrieve a Header from Reader.Next, // mutate it in some ways, and then pass it back to Writer.WriteHeader // should do so by creating a new Header and copying the fields // that they are interested in preserving. type Header struct { // Typeflag is the type of header entry.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 24.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/patchnode/patchnode_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 12 15:15:45 UTC 2022 - 3.7K bytes - Viewed (0) -
pkg/log/uds_test.go
var body []byte if r.Body != nil { if data, err := io.ReadAll(r.Body); err == nil { body = data } } messages := []string{} if err := json.Unmarshal(body, &messages); err != nil { w.WriteHeader(http.StatusBadRequest) } us.messages = append(us.messages, messages...) } func TestUDSLog(t *testing.T) { srv := udsServer{messages: make([]string, 0)} udsDir := t.TempDir()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0)