- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 73 for wroteHeader (0.25 sec)
-
staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go
if !rl.statusRecorded { rl.recordStatus(http.StatusOK) // Default if WriteHeader hasn't been called } if rl.captureErrorOutput { rl.Addf("logging error output: %q\n", string(b)) } return rl.w.Write(b) } // WriteHeader implements http.ResponseWriter. func (rl *respLogger) WriteHeader(status int) { rl.recordStatus(status) rl.w.WriteHeader(status) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 10:10:35 UTC 2023 - 9.7K bytes - Viewed (0) -
tools/docker-builder/builder/tar.go
header.Mode = 0o755 } else { header.Mode = 0o644 } header.Uid = 0 header.Gid = 0 // TODO: if we want reproducible builds we can fake the timestamps here if err := tw.WriteHeader(header); err != nil { return err } if info.Mode().IsRegular() { data, err := os.Open(src) if err != nil { return err } defer data.Close()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 29 17:01:46 UTC 2022 - 3.7K bytes - Viewed (0) -
src/encoding/pem/pem.go
// See RFC 1421, section 4.6.1.1 if hasProcType { if err := writeHeader(out, procType, b.Headers[procType]); err != nil { return err } } // For consistency of output, write other headers sorted by key. slices.Sort(h) for _, k := range h { if err := writeHeader(out, k, b.Headers[k]); err != nil { return err } } if _, err := out.Write(nl); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.6K bytes - Viewed (0) -
src/database/sql/example_service_test.go
defer cancel() err := s.db.PingContext(ctx) if err != nil { http.Error(w, fmt.Sprintf("db down: %v", err), http.StatusFailedDependency) return } w.WriteHeader(http.StatusOK) return case "/quick-action": // This is a short SELECT. Use the request context as the base of // the context timeout. ctx, cancel := context.WithTimeout(r.Context(), 3*time.Second)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 20:21:26 UTC 2024 - 4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/ProjectAccessorsSourceGenerator.java
} catch (IOException e) { throw new UncheckedIOException(e); } } private void generate(String packageName, String className, ProjectDescriptor current) throws IOException { writeHeader(packageName); writeLn("@NonNullApi"); writeLn("public class " + className + " extends DelegatingProjectDependency {"); writeLn(); writeLn(" @Inject");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/RootProjectAccessorSourceGenerator.java
} catch (IOException e) { throw new UncheckedIOException(e); } } private void generate(String packageName, String className, ProjectDescriptor current) throws IOException { writeHeader(packageName); writeLn("@NonNullApi"); writeLn("public class " + className + " extends TypeSafeProjectDependencyFactory {\n"); writeLn(); writeLn(" @Inject");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/fake.go
// it is used for testing purpose only type FakeResponseWriter struct{} func (fw *FakeResponseWriter) Header() http.Header { return http.Header{} } func (fw *FakeResponseWriter) WriteHeader(code int) {} func (fw *FakeResponseWriter) Write(bs []byte) (int, error) { return len(bs), nil } // For HTTP2 an http.ResponseWriter object implements // http.Flusher and http.CloseNotifier.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 01 19:58:11 UTC 2021 - 1.8K bytes - Viewed (0) -
pkg/istio-agent/health/health_check_test.go
if httpServerEventCount < len(httpHealthStatuses) && httpHealthStatuses[httpServerEventCount] { writer.WriteHeader(http.StatusOK) writer.Write([]byte("foobar")) } else { writer.WriteHeader(http.StatusInternalServerError) } httpServerEventCount++ })) host, ports, err := net.SplitHostPort(strings.TrimPrefix(sss.URL, "http://")) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 16:50:11 UTC 2023 - 6.3K bytes - Viewed (0) -
platforms/software/plugins-version-catalog/src/main/java/org/gradle/api/plugins/catalog/internal/TomlWriter.java
} catch (IOException ex) { throw new RuntimeException(ex); } return this; } public void generate(DefaultVersionCatalog model) { writeHeader(); writeMetadata(); writeVersions(model); writeLibraries(model); writeBundles(model); writePlugins(model); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 7.2K bytes - Viewed (0) -
pkg/h2c/wrapper.go
return denyH2cUpgrade(h2c.NewHandler(h, s)) } func denyH2cUpgrade(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if isH2CUpgrade(r.Header) { w.WriteHeader(http.StatusMethodNotAllowed) _, _ = w.Write([]byte("h2c upgrade not allowed")) return } h.ServeHTTP(w, r) }) } func isH2CUpgrade(h http.Header) bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 09 08:02:48 UTC 2022 - 1.7K bytes - Viewed (0)