INNER CODE UNIT · Go

calcReceiveTime

iimeta/fastapi · internal/cmd/cmd.go:485

func calcReceiveTime(r *ghttp.Request) {
	if gstr.Contains(r.Header.Get("Content-Type"), "multipart/") {
		r.GetMultipartForm()
	} else {
		_ = r.GetBody()
	}
	r.SetCtxVar(consts.RECEIVE_TIME_KEY, gtime.TimestampMilli()-r.EnterTime.TimestampMilli())
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…