- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for TimeFormat (0.43 sec)
-
cmd/server_test.go
// retrieve the info of last modification time of the object from the response header. lastModified := response.Header.Get("Last-Modified") // Parse it into time.Time structure. t, err := time.Parse(http.TimeFormat, lastModified) c.Assert(err, nil) // make HTTP request to obtain object info. // But this time set the "If-Modified-Since" header to be 10 minute more than the actual // last modified time of the object.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 115.3K bytes - Viewed (0) -
cmd/object-handlers.go
return } OA := new(getObjectAttributesResponse) if opts.Versioned { w.Header().Set(xhttp.AmzVersionID, objInfo.VersionID) } lastModified := objInfo.ModTime.UTC().Format(http.TimeFormat) w.Header().Set(xhttp.LastModified, lastModified) w.Header().Del(xhttp.ContentType) if _, ok := opts.ObjectAttributes[xhttp.Checksum]; ok { chkSums := objInfo.decryptChecksums(0, r.Header)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 14 13:28:35 UTC 2024 - 124.2K bytes - Viewed (0) -
cmd/erasure-object.go
tags["set"] = er.setIndex tags["pool"] = er.poolIndex tags["merrs"] = joinErrs(errs) tags["derrs"] = dataErrsByPart if m.IsValid() { tags["size"] = m.Size tags["mtime"] = m.ModTime.Format(http.TimeFormat) tags["data"] = m.Erasure.DataBlocks tags["parity"] = m.Erasure.ParityBlocks } else { tags["invalid-meta"] = true tags["data"] = er.setDriveCount - er.defaultParityCount
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 78.6K bytes - Viewed (0) -
src/net/http/serve_test.go
if !ok { t.Error("ResponseWriter did not implement io.StringWriter") } default: t.Error("handler was never called") } } func TestAppendTime(t *testing.T) { var b [len(TimeFormat)]byte t1 := time.Date(2013, 9, 21, 15, 41, 0, 0, time.FixedZone("CEST", 2*60*60)) res := ExportAppendTime(b[:0], t1) t2, err := ParseTime(string(res)) if err != nil { t.Fatalf("Error parsing time: %s", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/net/http/h2_bundle.go
ctype = DetectContentType(p) } var date string if _, ok := rws.snapHeader["Date"]; !ok { // TODO(bradfitz): be faster here, like net/http? measure. date = rws.conn.srv.now().UTC().Format(TimeFormat) } for _, v := range rws.snapHeader["Trailer"] { http2foreachHeaderElement(v, rws.declareTrailer) } // "Connection" headers aren't allowed in HTTP/2 (RFC 7540, 8.1.2.2),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"StatusUnsupportedMediaType", Const, 0}, {"StatusUpgradeRequired", Const, 7}, {"StatusUseProxy", Const, 0}, {"StatusVariantAlsoNegotiates", Const, 7}, {"StripPrefix", Func, 0}, {"TimeFormat", Const, 0}, {"TimeoutHandler", Func, 0}, {"TrailerPrefix", Const, 8}, {"Transport", Type, 0}, {"Transport.Dial", Field, 0}, {"Transport.DialContext", Field, 7}, {"Transport.DialTLS", Field, 4},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg net/http, const StatusUnauthorized ideal-int pkg net/http, const StatusUnsupportedMediaType ideal-int pkg net/http, const StatusUseProxy ideal-int pkg net/http, const TimeFormat ideal-string pkg net/http, func CanonicalHeaderKey(string) string pkg net/http, func DetectContentType([]uint8) string pkg net/http, func Error(ResponseWriter, string, int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
]==f[1]},Xo.rebind(n,a,"on")};var zs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Rs=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ds=tc.format=ac.timeFormat,Ps=Ds.utc,Us=Ps("%Y-%m-%dT%H:%M:%S.%LZ");Ds.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Oo:Us,Oo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Oo.toString=Us.toString,tc.second=Rt(function(n){return new e...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (1) -
api/go1.1.txt
pkg net/http, const StatusTemporaryRedirect = 307 pkg net/http, const StatusUnauthorized = 401 pkg net/http, const StatusUnsupportedMediaType = 415 pkg net/http, const StatusUseProxy = 305 pkg net/http, const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT" pkg net/http, func ParseTime(string) (time.Time, error) pkg net/http, method (*Request) PostFormValue(string) string pkg net/http, method (*ServeMux) Handler(*Request) (Handler, string)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)