@supraio/client-daemon-js 0.0.1-master.5 → 0.0.1-master.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/supra-client-daemon.js +473 -405
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +473 -405
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
- package/wasm_exec.js +7 -0
package/supra-client-daemon.js
CHANGED
|
@@ -21005,8 +21005,8 @@ $packages["time"] = (function() {
|
|
|
21005
21005
|
return [nhi, nlo];
|
|
21006
21006
|
};
|
|
21007
21007
|
Date = function(year, month, day, hour, min, sec, nsec, loc) {
|
|
21008
|
-
var _r, _r$1,
|
|
21009
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1;
|
|
21008
|
+
var _r, _r$1, _tuple, _tuple$1, _tuple$2, _tuple$3, _tuple$4, _tuple$5, _tuple$6, abs, d, day, end, hour, loc, m, min, month, nsec, offset, sec, start, t, unix, utc, x$1, x$2, x$3, x$4, x$5, x$6, x$7, x$8, year, $s, $r;
|
|
21009
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; _tuple$3 = $f._tuple$3; _tuple$4 = $f._tuple$4; _tuple$5 = $f._tuple$5; _tuple$6 = $f._tuple$6; abs = $f.abs; d = $f.d; day = $f.day; end = $f.end; hour = $f.hour; loc = $f.loc; m = $f.m; min = $f.min; month = $f.month; nsec = $f.nsec; offset = $f.offset; sec = $f.sec; start = $f.start; t = $f.t; unix = $f.unix; utc = $f.utc; x$1 = $f.x$1; x$2 = $f.x$2; x$3 = $f.x$3; x$4 = $f.x$4; x$5 = $f.x$5; x$6 = $f.x$6; x$7 = $f.x$7; x$8 = $f.x$8; year = $f.year; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
21010
21010
|
if (loc === ptrType$2.nil) {
|
|
21011
21011
|
$panic(new $String("time: missing Location in call to Date"));
|
|
21012
21012
|
}
|
|
@@ -21044,27 +21044,20 @@ $packages["time"] = (function() {
|
|
|
21044
21044
|
/* */ if (!((offset === 0))) { $s = 2; continue; }
|
|
21045
21045
|
/* */ $s = 3; continue;
|
|
21046
21046
|
/* if (!((offset === 0))) { */ case 2:
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
$s = 7; continue;
|
|
21056
|
-
/* } else if ((utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { */ case 6:
|
|
21057
|
-
_r$2 = loc.lookup(end); /* */ $s = 9; case 9: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
21058
|
-
_tuple$7 = _r$2;
|
|
21059
|
-
offset = _tuple$7[1];
|
|
21060
|
-
/* } */ case 7:
|
|
21061
|
-
case 4:
|
|
21047
|
+
utc = (x$7 = (new $Int64(0, offset)), new $Int64(unix.$high - x$7.$high, unix.$low - x$7.$low));
|
|
21048
|
+
/* */ if ((utc.$high < start.$high || (utc.$high === start.$high && utc.$low < start.$low)) || (utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { $s = 4; continue; }
|
|
21049
|
+
/* */ $s = 5; continue;
|
|
21050
|
+
/* if ((utc.$high < start.$high || (utc.$high === start.$high && utc.$low < start.$low)) || (utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { */ case 4:
|
|
21051
|
+
_r$1 = loc.lookup(utc); /* */ $s = 6; case 6: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
21052
|
+
_tuple$6 = _r$1;
|
|
21053
|
+
offset = _tuple$6[1];
|
|
21054
|
+
/* } */ case 5:
|
|
21062
21055
|
unix = (x$8 = (new $Int64(0, offset)), new $Int64(unix.$high - x$8.$high, unix.$low - x$8.$low));
|
|
21063
21056
|
/* } */ case 3:
|
|
21064
21057
|
t = $clone(unixTime(unix, ((nsec >> 0))), Time);
|
|
21065
21058
|
t.setLoc(loc);
|
|
21066
21059
|
$s = -1; return t;
|
|
21067
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Date }; } $f._r = _r; $f._r$1 = _r$1; $f.
|
|
21060
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Date }; } $f._r = _r; $f._r$1 = _r$1; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f._tuple$3 = _tuple$3; $f._tuple$4 = _tuple$4; $f._tuple$5 = _tuple$5; $f._tuple$6 = _tuple$6; $f.abs = abs; $f.d = d; $f.day = day; $f.end = end; $f.hour = hour; $f.loc = loc; $f.m = m; $f.min = min; $f.month = month; $f.nsec = nsec; $f.offset = offset; $f.sec = sec; $f.start = start; $f.t = t; $f.unix = unix; $f.utc = utc; $f.x$1 = x$1; $f.x$2 = x$2; $f.x$3 = x$3; $f.x$4 = x$4; $f.x$5 = x$5; $f.x$6 = x$6; $f.x$7 = x$7; $f.x$8 = x$8; $f.year = year; $f.$s = $s; $f.$r = $r; return $f;
|
|
21068
21061
|
};
|
|
21069
21062
|
$pkg.Date = Date;
|
|
21070
21063
|
Time.ptr.prototype.Truncate = function(d) {
|
|
@@ -98053,7 +98046,7 @@ $packages["vendor/golang.org/x/net/http2/hpack"] = (function() {
|
|
|
98053
98046
|
return $pkg;
|
|
98054
98047
|
})();
|
|
98055
98048
|
$packages["net/http"] = (function() {
|
|
98056
|
-
var $pkg = {}, $init, bufio, bytes, gzip, list, context, rand, tls, base64, binary, errors, fmt, io, fs, ioutil, log, math, rand$1, mime, multipart, net, httptrace, internal, textproto, url, os, path, filepath, reflect, runtime, sort, strconv, strings, sync, atomic, js, time, utf8, httpguts, httpproxy, hpack, idna, Cookie, SameSite, http2dataBuffer, http2ErrCode, http2ConnectionError, http2StreamError, http2goAwayFlowError, http2connError, http2pseudoHeaderError, http2duplicatePseudoHeaderError, http2headerFieldNameError, http2headerFieldValueError, http2flow, http2FrameType, http2Flags, http2FrameHeader, http2Frame, http2Framer, http2frameCache, http2DataFrame, http2SettingsFrame, http2PingFrame, http2GoAwayFrame, http2UnknownFrame, http2WindowUpdateFrame, http2HeadersFrame, http2HeadersFrameParam, http2PriorityFrame, http2PriorityParam, http2RSTStreamFrame, http2ContinuationFrame, http2PushPromiseFrame, http2PushPromiseParam, http2MetaHeadersFrame, http2goroutineLock, http2streamState, http2Setting, http2SettingID, http2gate, http2closeWaiter, http2bufferedWriter, http2connectionStater, http2sorter, http2incomparable, http2pipe, http2pipeBuffer, http2Server, http2serverInternalState, http2ServeConnOpts, http2serverConn, http2stream, http2readFrameResult, http2frameWriteResult, http2serverMessage, http2requestParam, http2bodyReadMsg, http2requestBody, http2responseWriter, http2responseWriterState, http2chunkWriter, http2startPushRequest, http2writeFramer, http2writeContext, http2flushFrameWriter, http2writeSettings, http2writeGoAway, http2writeData, http2handlerPanicRST, http2writePingAck, http2writeSettingsAck, http2writeResHeaders, http2writePushPromise, http2write100ContinueHeadersFrame, http2writeWindowUpdate, http2WriteScheduler, http2OpenStreamOptions, http2FrameWriteRequest, http2writeQueue, http2writeQueuePool, http2PriorityWriteSchedulerConfig, http2priorityNodeState, http2priorityNode, http2sortPriorityNodeSiblings, http2priorityWriteScheduler, http2randomWriteScheduler, Header, stringWriter, keyValues, headerSorter, incomparable, contextKey, noBody, PushOptions, ProtocolError, Request, requestBodyReadError, maxBytesReader, Response, Handler, ResponseWriter, conn, chunkWriter, response, atomicBool, writerOnly, readResult, connReader, expectContinueReader, extraHeader, closeWriter, statusError, HandlerFunc, redirectHandler, ServeMux, muxEntry, Server, ConnState, serverHandler, onceCloseListener, globalOptionsHandler, initALPNRequest, loggingConn, checkConnErrorWriter, sniffSig, exactSig, maskedSig, htmlSig, mp4Sig, textSig, errorReader, byteReader, transferWriter, transferReader, unsupportedTEError, body, bodyLocked, finishAsyncByteRead, bufioFlushWriter, readTrackingBody, baseContexter, I, requestTooLarger, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, sliceType$3, sliceType$4, ptrType$4, funcType, arrayType, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, chanType, ptrType$11, sliceType$5, sliceType$6, sliceType$7, ptrType$15, ptrType$17, ptrType$18, ptrType$19, ptrType$20, ptrType$21, structType, ptrType$24, ptrType$26, sliceType$9, ptrType$27, sliceType$10, ptrType$28, arrayType$1, ptrType$34, ptrType$35, ptrType$36, arrayType$3, ptrType$37, ptrType$38, ptrType$39, arrayType$4, sliceType$15, ptrType$40, ptrType$41, ptrType$42, ptrType$43, ptrType$44, ptrType$45, ptrType$46, ptrType$47, ptrType$48, ptrType$49, ptrType$50, ptrType$51, ptrType$52, sliceType$16, sliceType$17, ptrType$53, arrayType$5, sliceType$18, sliceType$19, ptrType$54, ptrType$55, sliceType$20, ptrType$56, ptrType$57, ptrType$58, ptrType$59, sliceType$21, sliceType$22, ptrType$60, ptrType$61, funcType$1, ptrType$62, ptrType$63, ptrType$64, ptrType$65, ptrType$66, ptrType$67, ptrType$68, ptrType$69, ptrType$70, ptrType$71, ptrType$72, ptrType$74, ptrType$75, sliceType$23, ptrType$76, sliceType$24, ptrType$80, ptrType$81, ptrType$82, sliceType$25, ptrType$83, ptrType$84, ptrType$85, ptrType$86, ptrType$87, ptrType$88, ptrType$89, ptrType$90, arrayType$6, sliceType$26, structType$1, ptrType$91, ptrType$92, ptrType$93, structType$2, ptrType$94, ptrType$95, ptrType$96, ptrType$97, arrayType$7, arrayType$8, sliceType$27, ptrType$98, ptrType$99, ptrType$100, ptrType$101, arrayType$9, ptrType$102, ptrType$105, ptrType$106, ptrType$107, ptrType$108, funcType$2, funcType$3, chanType$2, ptrType$117, ptrType$118, funcType$6, funcType$7, ptrType$119, chanType$3, funcType$8, mapType$5, funcType$9, chanType$4, chanType$5, chanType$6, chanType$7, chanType$8, mapType$6, mapType$7, chanType$9, chanType$10, ptrType$123, funcType$12, ptrType$124, funcType$13, ptrType$125, mapType$10, ptrType$126, mapType$11, mapType$12, ptrType$127, ptrType$128, funcType$14, ptrType$131, ptrType$132, ptrType$133, mapType$13, funcType$15, mapType$14, funcType$16, funcType$17, funcType$18, mapType$15, mapType$16, ptrType$135, ptrType$136, ptrType$137, ptrType$138, ptrType$141, chanType$12, ptrType$142, cookieNameSanitizer, errSeeker, errNoOverlap, unixEpochTime, errMissingSeek, errMissingReadDir, http2dataChunkSizeClasses, http2dataChunkPools, http2errReadEmpty, http2errCodeName, http2errMixPseudoHeaderTypes, http2errPseudoAfterRegular, http2padZeros, http2frameName, http2flagName, http2frameParsers, http2fhBytes, http2ErrFrameTooLarge, http2errStreamID, http2errDepStreamID, http2errPadLength, http2errPadBytes, http2DebugGoroutines, http2goroutineSpace, http2littleBuf, http2commonBuildOnce, http2commonLowerHeader, http2commonCanonHeader, http2VerboseLogs, http2logFrameWrites, http2logFrameReads, http2inTests, http2clientPreface, http2stateName, http2settingName, http2bufWriterPool, http2sorterPool, http2errClosedPipeWrite, http2errClientDisconnected, http2errClosedBody, http2errHandlerComplete, http2errStreamClosed, http2responseWriterStatePool, http2testHookOnConn, http2testHookGetServerConn, http2testHookOnPanicMu, http2testHookOnPanic, http2settingsTimerMsg, http2idleTimerMsg, http2shutdownTimerMsg, http2gracefulShutdownMsg, http2errPrefaceTimeout, http2errChanPool, http2writeDataPool, http2errHandlerPanicked, http2goAwayTimeout, http2ErrRecursivePush, http2ErrPushLimitReached, http2connHeaders, http2errClientConnClosed, http2errClientConnUnusable, http2errClientConnGotGoAway, http2errRequestCanceled, http2errStopReqBodyWrite, http2errStopReqBodyWriteAndCancel, http2errReqBodyTooLong, http2errClosedResponseBody, http2errResponseHeaderListSize, http2errRequestHeaderListSize, http2noBody, headerNewlineToSpace, headerSorterPool, aLongTimeAgo, omitBundledHTTP2, reqWriteExcludeHeader, multipartByReader, errMissingHost, textprotoReaderPool, respExcludeHeader, uint8Array, useFakeNetwork, errClosed, crlf, colonSpace, bufioReaderPool, bufioWriter2kPool, bufioWriter2kPool$24ptr, bufioWriter4kPool, bufioWriter4kPool$24ptr, copyBufPool, errTooLarge, extraHeaderKeys, headerContentLength, headerDate, htmlReplacer, defaultServeMux, defaultServeMux$24ptr, stateName, testHookServerServe, uniqNameMu, uniqNameNext, sniffSignatures, mp4ftype, mp4, socksaLongTimeAgo, statusText, suppressedHeaders304, suppressedHeadersNoBody, singleCRLF, doubleCRLF, errTrailerEOF, nopCloserType, errCannotRewind, errKeepAlivesDisabled, errConnBroken, errCloseIdle, errTooManyIdle, errTooManyIdleHost, errCloseIdleConns, errReadLoopExiting, errIdleConnTimeout, errServerClosedIdle, errCallerOwnsConn, errRequestCanceledConn, errReadOnClosedResBody, _r, x$1, x$2, _r$1, basicAuth, cloneURLValues, cloneURL, cloneMultipartForm, cloneMultipartFileHeader, readSetCookies, readCookies, validCookieDomain, validCookieExpires, isCookieDomainName, sanitizeCookieName, sanitizeCookieValue, validCookieValueByte, sanitizeCookiePath, validCookiePathByte, sanitizeOrWarn, parseCookieValue, isCookieNameValid, http2isBadCipher, http2getDataBufferChunk, http2putDataBufferChunk, http2streamError, http2typeFrameParser, http2readFrameHeader, http2NewFramer, http2terminalReadFrameError, http2parseDataFrame, http2validStreamIDOrZero, http2validStreamID, http2parseSettingsFrame, http2parsePingFrame, http2parseGoAwayFrame, http2parseUnknownFrame, http2parseWindowUpdateFrame, http2parseHeadersFrame, http2parsePriorityFrame, http2parseRSTStreamFrame, http2parseContinuationFrame, http2parsePushPromise, http2readByte, http2readUint32, http2summarizeFrame, http2newGoroutineLock, http2curGoroutineID, http2parseUintBytes, http2cutoff64, http2buildCommonHeaderMapsOnce, http2buildCommonHeaderMaps, http2lowerHeader, init, http2validWireHeaderFieldName, http2httpCodeString, http2newBufferedWriter, http2bodyAllowedForStatus, http2ConfigureServer, http2serverConnBaseContext, http2errno, http2isClosedConnError, http2checkPriority, http2handleHeaderListTooLong, http2checkWriteHeaderCode, http2cloneHeader, http2foreachHeaderElement, http2checkValidHTTP2RequestHeaders, http2new400Handler, http2h1ServerKeepAlivesDisabled, http2strSliceContains, http2writeEndsStream, http2splitHeaderBlock, http2encKV, http2encodeHeaders, http2NewPriorityWriteScheduler, http2NewRandomWriteScheduler, CanonicalHeaderKey, hasToken, isTokenBoundary, isNotToken, isASCII, stringContainsCTLByte, hexEscapeNonASCII, badStringError, valueOrDefault, idnaASCII, cleanHost, removeZone, ParseHTTPVersion, validMethod, parseBasicAuth, parseRequestLine, newTextprotoReader, putTextprotoReader, readRequest, MaxBytesReader, copyValues, parsePostForm, requestMethodUsuallyLacksBody, fixPragmaCacheControl, isProtocolSwitchResponse, isProtocolSwitchHeader, bufioWriterPool, newBufioReader, putBufioReader, newBufioWriterSize, putBufioWriter, appendTime, http1ServerSupportsRequest, checkWriteHeaderCode, relevantCaller, foreachHeaderElement, writeStatusLine, validNextProto, badRequestError, isCommonNetReadError, registerOnHitEOF, requestBodyRemains, Error, NotFound, NotFoundHandler, Redirect, htmlEscape, RedirectHandler, cleanPath, stripHostPort, appendSorted, newLoggingConn, numLeadingCRorLF, strSliceContains, tlsRecordHeaderLooksLikeHTTP, DetectContentType, isWS, isTT, StatusText, newTransferWriter, noResponseBodyExpected, bodyAllowedForStatus, suppressedHeaders, readTransfer, chunked, isIdentity, isUnsupportedTEError, fixLength, shouldClose, fixTrailer, seeUpcomingDoubleCRLF, mergeSetHeader, parseContentLength, isKnownInMemoryReader, cloneTLSConfig;
|
|
98049
|
+
var $pkg = {}, $init, bufio, bytes, gzip, list, context, rand, tls, base64, binary, errors, fmt, io, fs, ioutil, log, math, rand$1, mime, multipart, net, httptrace, internal, textproto, url, os, path, filepath, reflect, runtime, sort, strconv, strings, sync, atomic, js, time, utf8, httpguts, httpproxy, hpack, idna, Cookie, SameSite, http2dataBuffer, http2ErrCode, http2ConnectionError, http2StreamError, http2goAwayFlowError, http2connError, http2pseudoHeaderError, http2duplicatePseudoHeaderError, http2headerFieldNameError, http2headerFieldValueError, http2flow, http2FrameType, http2Flags, http2FrameHeader, http2Frame, http2Framer, http2frameCache, http2DataFrame, http2SettingsFrame, http2PingFrame, http2GoAwayFrame, http2UnknownFrame, http2WindowUpdateFrame, http2HeadersFrame, http2HeadersFrameParam, http2PriorityFrame, http2PriorityParam, http2RSTStreamFrame, http2ContinuationFrame, http2PushPromiseFrame, http2PushPromiseParam, http2MetaHeadersFrame, http2goroutineLock, http2streamState, http2Setting, http2SettingID, http2gate, http2closeWaiter, http2bufferedWriter, http2connectionStater, http2sorter, http2incomparable, http2pipe, http2pipeBuffer, http2Server, http2serverInternalState, http2ServeConnOpts, http2serverConn, http2stream, http2readFrameResult, http2frameWriteResult, http2serverMessage, http2requestParam, http2bodyReadMsg, http2requestBody, http2responseWriter, http2responseWriterState, http2chunkWriter, http2startPushRequest, http2writeFramer, http2writeContext, http2flushFrameWriter, http2writeSettings, http2writeGoAway, http2writeData, http2handlerPanicRST, http2writePingAck, http2writeSettingsAck, http2writeResHeaders, http2writePushPromise, http2write100ContinueHeadersFrame, http2writeWindowUpdate, http2WriteScheduler, http2OpenStreamOptions, http2FrameWriteRequest, http2writeQueue, http2writeQueuePool, http2PriorityWriteSchedulerConfig, http2priorityNodeState, http2priorityNode, http2sortPriorityNodeSiblings, http2priorityWriteScheduler, http2randomWriteScheduler, Header, stringWriter, keyValues, headerSorter, incomparable, contextKey, noBody, PushOptions, ProtocolError, Request, requestBodyReadError, maxBytesReader, Response, Handler, ResponseWriter, conn, chunkWriter, response, atomicBool, writerOnly, readResult, connReader, expectContinueReader, extraHeader, closeWriter, statusError, HandlerFunc, redirectHandler, ServeMux, muxEntry, Server, ConnState, serverHandler, onceCloseListener, globalOptionsHandler, initALPNRequest, loggingConn, checkConnErrorWriter, sniffSig, exactSig, maskedSig, htmlSig, mp4Sig, textSig, errorReader, byteReader, transferWriter, transferReader, unsupportedTEError, body, bodyLocked, finishAsyncByteRead, bufioFlushWriter, readTrackingBody, baseContexter, I, requestTooLarger, ptrType, sliceType, sliceType$1, ptrType$1, sliceType$2, sliceType$3, sliceType$4, ptrType$4, funcType, arrayType, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, chanType, ptrType$11, sliceType$5, sliceType$6, sliceType$7, ptrType$15, ptrType$17, ptrType$18, ptrType$19, ptrType$20, ptrType$21, structType, ptrType$24, ptrType$26, sliceType$9, ptrType$27, sliceType$10, ptrType$28, arrayType$1, ptrType$34, ptrType$35, ptrType$36, arrayType$3, ptrType$37, ptrType$38, ptrType$39, arrayType$4, sliceType$15, ptrType$40, ptrType$41, ptrType$42, ptrType$43, ptrType$44, ptrType$45, ptrType$46, ptrType$47, ptrType$48, ptrType$49, ptrType$50, ptrType$51, ptrType$52, sliceType$16, sliceType$17, ptrType$53, arrayType$5, sliceType$18, sliceType$19, ptrType$54, ptrType$55, sliceType$20, ptrType$56, ptrType$57, ptrType$58, ptrType$59, sliceType$21, sliceType$22, ptrType$60, ptrType$61, funcType$1, ptrType$62, ptrType$63, ptrType$64, ptrType$65, ptrType$66, ptrType$67, ptrType$68, ptrType$69, ptrType$70, ptrType$71, ptrType$72, ptrType$73, ptrType$76, ptrType$77, sliceType$23, ptrType$78, arrayType$6, sliceType$24, ptrType$81, ptrType$82, ptrType$83, sliceType$25, ptrType$84, ptrType$85, ptrType$86, ptrType$87, ptrType$88, ptrType$89, ptrType$90, ptrType$91, sliceType$26, structType$1, ptrType$92, ptrType$93, ptrType$94, structType$2, ptrType$95, ptrType$96, ptrType$97, ptrType$98, arrayType$7, arrayType$8, sliceType$27, ptrType$99, ptrType$100, ptrType$101, arrayType$9, ptrType$102, ptrType$105, ptrType$106, ptrType$107, ptrType$108, funcType$2, funcType$3, chanType$2, ptrType$117, ptrType$118, funcType$6, funcType$7, ptrType$119, chanType$3, funcType$8, mapType$5, funcType$9, chanType$4, chanType$5, chanType$6, chanType$7, chanType$8, mapType$6, mapType$7, chanType$9, chanType$10, ptrType$123, funcType$12, ptrType$124, funcType$13, ptrType$125, mapType$10, ptrType$126, mapType$11, mapType$12, ptrType$127, ptrType$128, funcType$14, ptrType$131, ptrType$132, ptrType$133, mapType$13, funcType$15, mapType$14, funcType$16, funcType$17, funcType$18, mapType$15, mapType$16, ptrType$135, ptrType$136, ptrType$137, ptrType$138, ptrType$141, chanType$11, ptrType$142, cookieNameSanitizer, errSeeker, errNoOverlap, unixEpochTime, errMissingSeek, errMissingReadDir, http2dataChunkSizeClasses, http2dataChunkPools, http2errReadEmpty, http2errCodeName, http2errFromPeer, http2errMixPseudoHeaderTypes, http2errPseudoAfterRegular, http2padZeros, http2frameName, http2flagName, http2frameParsers, http2fhBytes, http2ErrFrameTooLarge, http2errStreamID, http2errDepStreamID, http2errPadLength, http2errPadBytes, http2DebugGoroutines, http2goroutineSpace, http2littleBuf, http2commonBuildOnce, http2commonLowerHeader, http2commonCanonHeader, http2VerboseLogs, http2logFrameWrites, http2logFrameReads, http2inTests, http2clientPreface, http2stateName, http2settingName, http2bufWriterPool, http2sorterPool, http2errClosedPipeWrite, http2errClientDisconnected, http2errClosedBody, http2errHandlerComplete, http2errStreamClosed, http2responseWriterStatePool, http2testHookOnConn, http2testHookGetServerConn, http2testHookOnPanicMu, http2testHookOnPanic, http2settingsTimerMsg, http2idleTimerMsg, http2shutdownTimerMsg, http2gracefulShutdownMsg, http2errPrefaceTimeout, http2errChanPool, http2writeDataPool, http2errHandlerPanicked, http2goAwayTimeout, http2ErrRecursivePush, http2ErrPushLimitReached, http2connHeaders, http2errClientConnClosed, http2errClientConnUnusable, http2errClientConnGotGoAway, http2errRequestCanceled, http2errStopReqBodyWrite, http2errStopReqBodyWriteAndCancel, http2errReqBodyTooLong, http2errNilRequestURL, http2errClosedResponseBody, http2errResponseHeaderListSize, http2errRequestHeaderListSize, http2noBody, headerNewlineToSpace, headerSorterPool, aLongTimeAgo, omitBundledHTTP2, reqWriteExcludeHeader, multipartByReader, errMissingHost, textprotoReaderPool, respExcludeHeader, uint8Array, useFakeNetwork, errClosed, crlf, colonSpace, bufioReaderPool, bufioWriter2kPool, bufioWriter2kPool$24ptr, bufioWriter4kPool, bufioWriter4kPool$24ptr, copyBufPool, errTooLarge, extraHeaderKeys, headerContentLength, headerDate, htmlReplacer, defaultServeMux, defaultServeMux$24ptr, stateName, testHookServerServe, uniqNameMu, uniqNameNext, sniffSignatures, mp4ftype, mp4, socksaLongTimeAgo, statusText, suppressedHeaders304, suppressedHeadersNoBody, singleCRLF, doubleCRLF, errTrailerEOF, nopCloserType, errCannotRewind, errKeepAlivesDisabled, errConnBroken, errCloseIdle, errTooManyIdle, errTooManyIdleHost, errCloseIdleConns, errReadLoopExiting, errIdleConnTimeout, errServerClosedIdle, errCallerOwnsConn, errRequestCanceledConn, errReadOnClosedResBody, _r, x$1, x$2, _r$1, basicAuth, cloneURLValues, cloneURL, cloneMultipartForm, cloneMultipartFileHeader, readSetCookies, readCookies, validCookieDomain, validCookieExpires, isCookieDomainName, sanitizeCookieName, sanitizeCookieValue, validCookieValueByte, sanitizeCookiePath, validCookiePathByte, sanitizeOrWarn, parseCookieValue, isCookieNameValid, http2asciiEqualFold, http2lower, http2isASCIIPrint, http2asciiToLower, http2isBadCipher, http2getDataBufferChunk, http2putDataBufferChunk, http2streamError, http2typeFrameParser, http2readFrameHeader, http2NewFramer, http2terminalReadFrameError, http2parseDataFrame, http2validStreamIDOrZero, http2validStreamID, http2parseSettingsFrame, http2parsePingFrame, http2parseGoAwayFrame, http2parseUnknownFrame, http2parseWindowUpdateFrame, http2parseHeadersFrame, http2parsePriorityFrame, http2parseRSTStreamFrame, http2parseContinuationFrame, http2parsePushPromise, http2readByte, http2readUint32, http2summarizeFrame, http2newGoroutineLock, http2curGoroutineID, http2parseUintBytes, http2cutoff64, http2buildCommonHeaderMapsOnce, http2buildCommonHeaderMaps, http2lowerHeader, init, http2validWireHeaderFieldName, http2httpCodeString, http2newBufferedWriter, http2bodyAllowedForStatus, http2ConfigureServer, http2serverConnBaseContext, http2errno, http2isClosedConnError, http2checkPriority, http2handleHeaderListTooLong, http2checkWriteHeaderCode, http2cloneHeader, http2foreachHeaderElement, http2checkValidHTTP2RequestHeaders, http2new400Handler, http2h1ServerKeepAlivesDisabled, http2strSliceContains, http2writeEndsStream, http2splitHeaderBlock, http2encKV, http2encodeHeaders, http2NewPriorityWriteScheduler, http2NewRandomWriteScheduler, CanonicalHeaderKey, hasToken, isTokenBoundary, isNotToken, isASCII, stringContainsCTLByte, hexEscapeNonASCII, badStringError, valueOrDefault, idnaASCII, cleanHost, removeZone, ParseHTTPVersion, validMethod, parseBasicAuth, parseRequestLine, newTextprotoReader, putTextprotoReader, readRequest, MaxBytesReader, copyValues, parsePostForm, requestMethodUsuallyLacksBody, fixPragmaCacheControl, isProtocolSwitchResponse, isProtocolSwitchHeader, bufioWriterPool, newBufioReader, putBufioReader, newBufioWriterSize, putBufioWriter, appendTime, http1ServerSupportsRequest, checkWriteHeaderCode, relevantCaller, foreachHeaderElement, writeStatusLine, validNextProto, badRequestError, isCommonNetReadError, registerOnHitEOF, requestBodyRemains, Error, NotFound, NotFoundHandler, Redirect, htmlEscape, RedirectHandler, cleanPath, stripHostPort, appendSorted, newLoggingConn, numLeadingCRorLF, strSliceContains, tlsRecordHeaderLooksLikeHTTP, DetectContentType, isWS, isTT, StatusText, newTransferWriter, noResponseBodyExpected, bodyAllowedForStatus, suppressedHeaders, readTransfer, chunked, isIdentity, isUnsupportedTEError, fixLength, shouldClose, fixTrailer, seeUpcomingDoubleCRLF, mergeSetHeader, parseContentLength, isKnownInMemoryReader, cloneTLSConfig;
|
|
98057
98050
|
bufio = $packages["bufio"];
|
|
98058
98051
|
bytes = $packages["bytes"];
|
|
98059
98052
|
gzip = $packages["compress/gzip"];
|
|
@@ -98995,10 +98988,10 @@ $packages["net/http"] = (function() {
|
|
|
98995
98988
|
this.state = 0;
|
|
98996
98989
|
this.bytes = new $Int64(0, 0);
|
|
98997
98990
|
this.subtreeBytes = new $Int64(0, 0);
|
|
98998
|
-
this.parent = ptrType$
|
|
98999
|
-
this.kids = ptrType$
|
|
99000
|
-
this.prev = ptrType$
|
|
99001
|
-
this.next = ptrType$
|
|
98991
|
+
this.parent = ptrType$83.nil;
|
|
98992
|
+
this.kids = ptrType$83.nil;
|
|
98993
|
+
this.prev = ptrType$83.nil;
|
|
98994
|
+
this.next = ptrType$83.nil;
|
|
99002
98995
|
return;
|
|
99003
98996
|
}
|
|
99004
98997
|
this.q = q_;
|
|
@@ -99016,7 +99009,7 @@ $packages["net/http"] = (function() {
|
|
|
99016
99009
|
http2priorityWriteScheduler = $pkg.http2priorityWriteScheduler = $newType(0, $kindStruct, "http.http2priorityWriteScheduler", true, "net/http", false, function(root_, nodes_, maxID_, closedNodes_, idleNodes_, maxClosedNodesInTree_, maxIdleNodesInTree_, writeThrottleLimit_, enableWriteThrottle_, tmp_, queuePool_) {
|
|
99017
99010
|
this.$val = this;
|
|
99018
99011
|
if (arguments.length === 0) {
|
|
99019
|
-
this.root = new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$
|
|
99012
|
+
this.root = new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
99020
99013
|
this.nodes = false;
|
|
99021
99014
|
this.maxID = 0;
|
|
99022
99015
|
this.closedNodes = sliceType$25.nil;
|
|
@@ -99230,8 +99223,8 @@ $packages["net/http"] = (function() {
|
|
|
99230
99223
|
this.remoteAddr = "";
|
|
99231
99224
|
this.tlsState = ptrType$21.nil;
|
|
99232
99225
|
this.werr = $ifaceNil;
|
|
99233
|
-
this.r = ptrType$
|
|
99234
|
-
this.bufr = ptrType$
|
|
99226
|
+
this.r = ptrType$94.nil;
|
|
99227
|
+
this.bufr = ptrType$77.nil;
|
|
99235
99228
|
this.bufw = ptrType$9.nil;
|
|
99236
99229
|
this.lastMethod = "";
|
|
99237
99230
|
this.curReq = new atomic.Value.ptr($ifaceNil);
|
|
@@ -99258,7 +99251,7 @@ $packages["net/http"] = (function() {
|
|
|
99258
99251
|
chunkWriter = $pkg.chunkWriter = $newType(0, $kindStruct, "http.chunkWriter", true, "net/http", false, function(res_, header_, wroteHeader_, chunking_) {
|
|
99259
99252
|
this.$val = this;
|
|
99260
99253
|
if (arguments.length === 0) {
|
|
99261
|
-
this.res = ptrType$
|
|
99254
|
+
this.res = ptrType$95.nil;
|
|
99262
99255
|
this.header = false;
|
|
99263
99256
|
this.wroteHeader = false;
|
|
99264
99257
|
this.chunking = false;
|
|
@@ -99272,7 +99265,7 @@ $packages["net/http"] = (function() {
|
|
|
99272
99265
|
response = $pkg.response = $newType(0, $kindStruct, "http.response", true, "net/http", false, function(conn_, req_, reqBody_, cancelCtx_, wroteHeader_, wroteContinue_, wants10KeepAlive_, wantsClose_, canWriteContinue_, writeContinueMu_, w_, cw_, handlerHeader_, calledHeader_, written_, contentLength_, status_, closeAfterReply_, requestBodyLimitHit_, trailers_, handlerDone_, dateBuf_, clenBuf_, statusBuf_, closeNotifyCh_, didCloseNotify_) {
|
|
99273
99266
|
this.$val = this;
|
|
99274
99267
|
if (arguments.length === 0) {
|
|
99275
|
-
this.conn = ptrType$
|
|
99268
|
+
this.conn = ptrType$98.nil;
|
|
99276
99269
|
this.req = ptrType$6.nil;
|
|
99277
99270
|
this.reqBody = $ifaceNil;
|
|
99278
99271
|
this.cancelCtx = $throwNilPointerError;
|
|
@@ -99283,7 +99276,7 @@ $packages["net/http"] = (function() {
|
|
|
99283
99276
|
this.canWriteContinue = 0;
|
|
99284
99277
|
this.writeContinueMu = new sync.Mutex.ptr(0, 0);
|
|
99285
99278
|
this.w = ptrType$9.nil;
|
|
99286
|
-
this.cw = new chunkWriter.ptr(ptrType$
|
|
99279
|
+
this.cw = new chunkWriter.ptr(ptrType$95.nil, false, false, false);
|
|
99287
99280
|
this.handlerHeader = false;
|
|
99288
99281
|
this.calledHeader = false;
|
|
99289
99282
|
this.written = new $Int64(0, 0);
|
|
@@ -99353,11 +99346,11 @@ $packages["net/http"] = (function() {
|
|
|
99353
99346
|
connReader = $pkg.connReader = $newType(0, $kindStruct, "http.connReader", true, "net/http", false, function(conn_, mu_, hasByte_, byteBuf_, cond_, inRead_, aborted_, remain_) {
|
|
99354
99347
|
this.$val = this;
|
|
99355
99348
|
if (arguments.length === 0) {
|
|
99356
|
-
this.conn = ptrType$
|
|
99349
|
+
this.conn = ptrType$98.nil;
|
|
99357
99350
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
99358
99351
|
this.hasByte = false;
|
|
99359
99352
|
this.byteBuf = arrayType$6.zero();
|
|
99360
|
-
this.cond = ptrType$
|
|
99353
|
+
this.cond = ptrType$73.nil;
|
|
99361
99354
|
this.inRead = false;
|
|
99362
99355
|
this.aborted = false;
|
|
99363
99356
|
this.remain = new $Int64(0, 0);
|
|
@@ -99375,7 +99368,7 @@ $packages["net/http"] = (function() {
|
|
|
99375
99368
|
expectContinueReader = $pkg.expectContinueReader = $newType(0, $kindStruct, "http.expectContinueReader", true, "net/http", false, function(resp_, readCloser_, closed_, sawEOF_) {
|
|
99376
99369
|
this.$val = this;
|
|
99377
99370
|
if (arguments.length === 0) {
|
|
99378
|
-
this.resp = ptrType$
|
|
99371
|
+
this.resp = ptrType$95.nil;
|
|
99379
99372
|
this.readCloser = $ifaceNil;
|
|
99380
99373
|
this.closed = 0;
|
|
99381
99374
|
this.sawEOF = 0;
|
|
@@ -99529,7 +99522,7 @@ $packages["net/http"] = (function() {
|
|
|
99529
99522
|
this.$val = this;
|
|
99530
99523
|
if (arguments.length === 0) {
|
|
99531
99524
|
this.ctx = $ifaceNil;
|
|
99532
|
-
this.c = ptrType$
|
|
99525
|
+
this.c = ptrType$76.nil;
|
|
99533
99526
|
this.h = new serverHandler.ptr(ptrType$51.nil);
|
|
99534
99527
|
return;
|
|
99535
99528
|
}
|
|
@@ -99550,7 +99543,7 @@ $packages["net/http"] = (function() {
|
|
|
99550
99543
|
checkConnErrorWriter = $pkg.checkConnErrorWriter = $newType(0, $kindStruct, "http.checkConnErrorWriter", true, "net/http", false, function(c_) {
|
|
99551
99544
|
this.$val = this;
|
|
99552
99545
|
if (arguments.length === 0) {
|
|
99553
|
-
this.c = ptrType$
|
|
99546
|
+
this.c = ptrType$98.nil;
|
|
99554
99547
|
return;
|
|
99555
99548
|
}
|
|
99556
99549
|
this.c = c_;
|
|
@@ -99682,7 +99675,7 @@ $packages["net/http"] = (function() {
|
|
|
99682
99675
|
if (arguments.length === 0) {
|
|
99683
99676
|
this.src = $ifaceNil;
|
|
99684
99677
|
this.hdr = $ifaceNil;
|
|
99685
|
-
this.r = ptrType$
|
|
99678
|
+
this.r = ptrType$77.nil;
|
|
99686
99679
|
this.closing = false;
|
|
99687
99680
|
this.doEarlyClose = false;
|
|
99688
99681
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
@@ -99706,7 +99699,7 @@ $packages["net/http"] = (function() {
|
|
|
99706
99699
|
bodyLocked = $pkg.bodyLocked = $newType(0, $kindStruct, "http.bodyLocked", true, "net/http", false, function(b_) {
|
|
99707
99700
|
this.$val = this;
|
|
99708
99701
|
if (arguments.length === 0) {
|
|
99709
|
-
this.b = ptrType$
|
|
99702
|
+
this.b = ptrType$97.nil;
|
|
99710
99703
|
return;
|
|
99711
99704
|
}
|
|
99712
99705
|
this.b = b_;
|
|
@@ -99828,41 +99821,41 @@ $packages["net/http"] = (function() {
|
|
|
99828
99821
|
ptrType$70 = $ptrType(http2responseWriterState);
|
|
99829
99822
|
ptrType$71 = $ptrType(http2sorter);
|
|
99830
99823
|
ptrType$72 = $ptrType(PushOptions);
|
|
99831
|
-
ptrType$
|
|
99832
|
-
ptrType$
|
|
99824
|
+
ptrType$73 = $ptrType(sync.Cond);
|
|
99825
|
+
ptrType$76 = $ptrType(tls.Conn);
|
|
99826
|
+
ptrType$77 = $ptrType(bufio.Reader);
|
|
99833
99827
|
sliceType$23 = $sliceType(http2Setting);
|
|
99834
|
-
ptrType$
|
|
99835
|
-
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
99836
|
-
ptrType$80 = $ptrType(http2writeQueue);
|
|
99837
|
-
ptrType$81 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
99838
|
-
ptrType$82 = $ptrType(http2priorityNode);
|
|
99839
|
-
sliceType$25 = $sliceType(ptrType$82);
|
|
99840
|
-
ptrType$83 = $ptrType(http2writeQueuePool);
|
|
99841
|
-
ptrType$84 = $ptrType(sliceType$25);
|
|
99842
|
-
ptrType$85 = $ptrType(headerSorter);
|
|
99843
|
-
ptrType$86 = $ptrType(multipart.Reader);
|
|
99844
|
-
ptrType$87 = $ptrType(bytes.Reader);
|
|
99845
|
-
ptrType$88 = $ptrType(strings.Reader);
|
|
99846
|
-
ptrType$89 = $ptrType(textproto.Reader);
|
|
99847
|
-
ptrType$90 = $ptrType(maxBytesReader);
|
|
99828
|
+
ptrType$78 = $ptrType(Header);
|
|
99848
99829
|
arrayType$6 = $arrayType($Uint8, 1);
|
|
99830
|
+
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
99831
|
+
ptrType$81 = $ptrType(http2writeQueue);
|
|
99832
|
+
ptrType$82 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
99833
|
+
ptrType$83 = $ptrType(http2priorityNode);
|
|
99834
|
+
sliceType$25 = $sliceType(ptrType$83);
|
|
99835
|
+
ptrType$84 = $ptrType(http2writeQueuePool);
|
|
99836
|
+
ptrType$85 = $ptrType(sliceType$25);
|
|
99837
|
+
ptrType$86 = $ptrType(headerSorter);
|
|
99838
|
+
ptrType$87 = $ptrType(multipart.Reader);
|
|
99839
|
+
ptrType$88 = $ptrType(bytes.Reader);
|
|
99840
|
+
ptrType$89 = $ptrType(strings.Reader);
|
|
99841
|
+
ptrType$90 = $ptrType(textproto.Reader);
|
|
99842
|
+
ptrType$91 = $ptrType(maxBytesReader);
|
|
99849
99843
|
sliceType$26 = $sliceType(io.Reader);
|
|
99850
99844
|
structType$1 = $structType("", [{prop: "Reader", name: "Reader", embedded: true, exported: true, typ: io.Reader, tag: ""}, {prop: "Closer", name: "Closer", embedded: true, exported: true, typ: io.Closer, tag: ""}]);
|
|
99851
|
-
ptrType$
|
|
99852
|
-
ptrType$
|
|
99853
|
-
ptrType$
|
|
99845
|
+
ptrType$92 = $ptrType(bufio.ReadWriter);
|
|
99846
|
+
ptrType$93 = $ptrType($Int32);
|
|
99847
|
+
ptrType$94 = $ptrType(connReader);
|
|
99854
99848
|
structType$2 = $structType("net/http", [{prop: "atomic", name: "atomic", embedded: false, exported: false, typ: $Uint64, tag: ""}]);
|
|
99855
|
-
ptrType$
|
|
99856
|
-
ptrType$
|
|
99857
|
-
ptrType$
|
|
99858
|
-
ptrType$
|
|
99849
|
+
ptrType$95 = $ptrType(response);
|
|
99850
|
+
ptrType$96 = $ptrType(sync.Pool);
|
|
99851
|
+
ptrType$97 = $ptrType(body);
|
|
99852
|
+
ptrType$98 = $ptrType(conn);
|
|
99859
99853
|
arrayType$7 = $arrayType($Uint8, 10);
|
|
99860
99854
|
arrayType$8 = $arrayType($Uint8, 3);
|
|
99861
99855
|
sliceType$27 = $sliceType($Uintptr);
|
|
99862
|
-
ptrType$
|
|
99863
|
-
ptrType$
|
|
99864
|
-
ptrType$
|
|
99865
|
-
ptrType$101 = $ptrType(tls.Conn);
|
|
99856
|
+
ptrType$99 = $ptrType(runtime.Func);
|
|
99857
|
+
ptrType$100 = $ptrType(expectContinueReader);
|
|
99858
|
+
ptrType$101 = $ptrType($Uint64);
|
|
99866
99859
|
arrayType$9 = $arrayType($Uint8, 5);
|
|
99867
99860
|
ptrType$102 = $ptrType(net.Listener);
|
|
99868
99861
|
ptrType$105 = $ptrType(transferWriter);
|
|
@@ -99893,11 +99886,11 @@ $packages["net/http"] = (function() {
|
|
|
99893
99886
|
ptrType$123 = $ptrType(http2writeGoAway);
|
|
99894
99887
|
funcType$12 = $funcType([], [$Uint32, $error], false);
|
|
99895
99888
|
ptrType$124 = $ptrType(http2FrameWriteRequest);
|
|
99896
|
-
funcType$13 = $funcType([ptrType$
|
|
99889
|
+
funcType$13 = $funcType([ptrType$83, $Bool], [$Bool], false);
|
|
99897
99890
|
ptrType$125 = $ptrType(http2priorityWriteScheduler);
|
|
99898
|
-
mapType$10 = $mapType($Uint32, ptrType$
|
|
99891
|
+
mapType$10 = $mapType($Uint32, ptrType$83);
|
|
99899
99892
|
ptrType$126 = $ptrType(http2randomWriteScheduler);
|
|
99900
|
-
mapType$11 = $mapType($Uint32, ptrType$
|
|
99893
|
+
mapType$11 = $mapType($Uint32, ptrType$81);
|
|
99901
99894
|
mapType$12 = $mapType($String, $Bool);
|
|
99902
99895
|
ptrType$127 = $ptrType(contextKey);
|
|
99903
99896
|
ptrType$128 = $ptrType(ProtocolError);
|
|
@@ -99906,19 +99899,19 @@ $packages["net/http"] = (function() {
|
|
|
99906
99899
|
ptrType$132 = $ptrType(redirectHandler);
|
|
99907
99900
|
ptrType$133 = $ptrType(ServeMux);
|
|
99908
99901
|
mapType$13 = $mapType($String, muxEntry);
|
|
99909
|
-
funcType$15 = $funcType([ptrType$51, ptrType$
|
|
99902
|
+
funcType$15 = $funcType([ptrType$51, ptrType$76, Handler], [], false);
|
|
99910
99903
|
mapType$14 = $mapType($String, funcType$15);
|
|
99911
99904
|
funcType$16 = $funcType([net.Conn, ConnState], [], false);
|
|
99912
99905
|
funcType$17 = $funcType([net.Listener], [context.Context], false);
|
|
99913
99906
|
funcType$18 = $funcType([context.Context, net.Conn], [context.Context], false);
|
|
99914
99907
|
mapType$15 = $mapType(ptrType$102, structType);
|
|
99915
|
-
mapType$16 = $mapType(ptrType$
|
|
99908
|
+
mapType$16 = $mapType(ptrType$98, structType);
|
|
99916
99909
|
ptrType$135 = $ptrType(onceCloseListener);
|
|
99917
99910
|
ptrType$136 = $ptrType(loggingConn);
|
|
99918
99911
|
ptrType$137 = $ptrType(exactSig);
|
|
99919
99912
|
ptrType$138 = $ptrType(maskedSig);
|
|
99920
99913
|
ptrType$141 = $ptrType(byteReader);
|
|
99921
|
-
chanType$
|
|
99914
|
+
chanType$11 = $chanType(readResult, false, false);
|
|
99922
99915
|
ptrType$142 = $ptrType(transferReader);
|
|
99923
99916
|
basicAuth = function(username, password) {
|
|
99924
99917
|
var auth, password, username;
|
|
@@ -100474,6 +100467,60 @@ $packages["net/http"] = (function() {
|
|
|
100474
100467
|
$s = -1; return _r$2 < 0;
|
|
100475
100468
|
/* */ } return; } if ($f === undefined) { $f = { $blk: isCookieNameValid }; } $f._r$2 = _r$2; $f.raw = raw; $f.$s = $s; $f.$r = $r; return $f;
|
|
100476
100469
|
};
|
|
100470
|
+
http2asciiEqualFold = function(s, t) {
|
|
100471
|
+
var i, s, t;
|
|
100472
|
+
if (!((s.length === t.length))) {
|
|
100473
|
+
return false;
|
|
100474
|
+
}
|
|
100475
|
+
i = 0;
|
|
100476
|
+
while (true) {
|
|
100477
|
+
if (!(i < s.length)) { break; }
|
|
100478
|
+
if (!((http2lower(s.charCodeAt(i)) === http2lower(t.charCodeAt(i))))) {
|
|
100479
|
+
return false;
|
|
100480
|
+
}
|
|
100481
|
+
i = i + (1) >> 0;
|
|
100482
|
+
}
|
|
100483
|
+
return true;
|
|
100484
|
+
};
|
|
100485
|
+
http2lower = function(b) {
|
|
100486
|
+
var b;
|
|
100487
|
+
if (65 <= b && b <= 90) {
|
|
100488
|
+
return b + 32 << 24 >>> 24;
|
|
100489
|
+
}
|
|
100490
|
+
return b;
|
|
100491
|
+
};
|
|
100492
|
+
http2isASCIIPrint = function(s) {
|
|
100493
|
+
var i, s;
|
|
100494
|
+
i = 0;
|
|
100495
|
+
while (true) {
|
|
100496
|
+
if (!(i < s.length)) { break; }
|
|
100497
|
+
if (s.charCodeAt(i) < 32 || s.charCodeAt(i) > 126) {
|
|
100498
|
+
return false;
|
|
100499
|
+
}
|
|
100500
|
+
i = i + (1) >> 0;
|
|
100501
|
+
}
|
|
100502
|
+
return true;
|
|
100503
|
+
};
|
|
100504
|
+
http2asciiToLower = function(s) {
|
|
100505
|
+
var _r$2, _tmp, _tmp$1, _tmp$2, _tmp$3, lower, ok, s, $s, $r;
|
|
100506
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tmp$3 = $f._tmp$3; lower = $f.lower; ok = $f.ok; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
100507
|
+
lower = "";
|
|
100508
|
+
ok = false;
|
|
100509
|
+
if (!http2isASCIIPrint(s)) {
|
|
100510
|
+
_tmp = "";
|
|
100511
|
+
_tmp$1 = false;
|
|
100512
|
+
lower = _tmp;
|
|
100513
|
+
ok = _tmp$1;
|
|
100514
|
+
$s = -1; return [lower, ok];
|
|
100515
|
+
}
|
|
100516
|
+
_r$2 = strings.ToLower(s); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
100517
|
+
_tmp$2 = _r$2;
|
|
100518
|
+
_tmp$3 = true;
|
|
100519
|
+
lower = _tmp$2;
|
|
100520
|
+
ok = _tmp$3;
|
|
100521
|
+
$s = -1; return [lower, ok];
|
|
100522
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2asciiToLower }; } $f._r$2 = _r$2; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tmp$2 = _tmp$2; $f._tmp$3 = _tmp$3; $f.lower = lower; $f.ok = ok; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
100523
|
+
};
|
|
100477
100524
|
http2isBadCipher = function(cipher) {
|
|
100478
100525
|
var _1, cipher;
|
|
100479
100526
|
_1 = cipher;
|
|
@@ -101554,7 +101601,7 @@ $packages["net/http"] = (function() {
|
|
|
101554
101601
|
return [_, err];
|
|
101555
101602
|
}
|
|
101556
101603
|
}
|
|
101557
|
-
if ((p.$length - ((padLength >> 0)) >> 0)
|
|
101604
|
+
if ((p.$length - ((padLength >> 0)) >> 0) < 0) {
|
|
101558
101605
|
_tmp$6 = $ifaceNil;
|
|
101559
101606
|
_tmp$7 = (x$5 = http2streamError(fh.StreamID, 1), new x$5.constructor.elem(x$5));
|
|
101560
101607
|
_ = _tmp$6;
|
|
@@ -102382,18 +102429,27 @@ $packages["net/http"] = (function() {
|
|
|
102382
102429
|
/* */ } return; } if ($f === undefined) { $f = { $blk: http2buildCommonHeaderMaps }; } $f._i = _i; $f._key = _key; $f._key$1 = _key$1; $f._r$2 = _r$2; $f._ref = _ref; $f.chk = chk; $f.common = common; $f.v = v; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
102383
102430
|
};
|
|
102384
102431
|
http2lowerHeader = function(v) {
|
|
102385
|
-
var _entry, _r$2, _tuple, ok, s, v, $s, $r;
|
|
102386
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _r$2 = $f._r$2; _tuple = $f._tuple; ok = $f.ok; s = $f.s; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102432
|
+
var _entry, _r$2, _tmp, _tmp$1, _tuple, _tuple$1, ascii, lower, ok, s, v, $s, $r;
|
|
102433
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; ascii = $f.ascii; lower = $f.lower; ok = $f.ok; s = $f.s; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102434
|
+
lower = "";
|
|
102435
|
+
ascii = false;
|
|
102387
102436
|
$r = http2buildCommonHeaderMapsOnce(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
102388
102437
|
_tuple = (_entry = http2commonLowerHeader[$String.keyFor(v)], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
102389
102438
|
s = _tuple[0];
|
|
102390
102439
|
ok = _tuple[1];
|
|
102391
102440
|
if (ok) {
|
|
102392
|
-
|
|
102441
|
+
_tmp = s;
|
|
102442
|
+
_tmp$1 = true;
|
|
102443
|
+
lower = _tmp;
|
|
102444
|
+
ascii = _tmp$1;
|
|
102445
|
+
$s = -1; return [lower, ascii];
|
|
102393
102446
|
}
|
|
102394
|
-
_r$2 =
|
|
102395
|
-
$
|
|
102396
|
-
|
|
102447
|
+
_r$2 = http2asciiToLower(v); /* */ $s = 2; case 2: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
102448
|
+
_tuple$1 = _r$2;
|
|
102449
|
+
lower = _tuple$1[0];
|
|
102450
|
+
ascii = _tuple$1[1];
|
|
102451
|
+
$s = -1; return [lower, ascii];
|
|
102452
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2lowerHeader }; } $f._entry = _entry; $f._r$2 = _r$2; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.ascii = ascii; $f.lower = lower; $f.ok = ok; $f.s = s; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
102397
102453
|
};
|
|
102398
102454
|
init = function() {
|
|
102399
102455
|
var _r$2, e, $s, $r;
|
|
@@ -102960,8 +103016,8 @@ $packages["net/http"] = (function() {
|
|
|
102960
103016
|
};
|
|
102961
103017
|
http2serverInternalState.prototype.startGracefulShutdown = function() { return this.$val.startGracefulShutdown(); };
|
|
102962
103018
|
http2ConfigureServer = function(s, conf) {
|
|
102963
|
-
var _1, _i,
|
|
102964
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _i = $f._i;
|
|
103019
|
+
var _1, _i, _key, _r$2, _r$3, _ref, _tmp, _tmp$1, conf, cs, h1, h2, haveRequired, i, protoHandler, s, sawBad, x$4, x$5, $s, $r;
|
|
103020
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _i = $f._i; _key = $f._key; _r$2 = $f._r$2; _r$3 = $f._r$3; _ref = $f._ref; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; conf = $f.conf; cs = $f.cs; h1 = $f.h1; h2 = $f.h2; haveRequired = $f.haveRequired; i = $f.i; protoHandler = $f.protoHandler; s = $f.s; sawBad = $f.sawBad; x$4 = $f.x$4; x$5 = $f.x$5; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
102965
103021
|
conf = [conf];
|
|
102966
103022
|
if (s === ptrType$51.nil) {
|
|
102967
103023
|
$panic(new $String("nil *http.Server"));
|
|
@@ -103021,21 +103077,12 @@ $packages["net/http"] = (function() {
|
|
|
103021
103077
|
/* } */ case 12:
|
|
103022
103078
|
/* } */ case 4:
|
|
103023
103079
|
s.TLSConfig.PreferServerCipherSuites = true;
|
|
103024
|
-
|
|
103025
|
-
_ref$1 = s.TLSConfig.NextProtos;
|
|
103026
|
-
_i$1 = 0;
|
|
103027
|
-
while (true) {
|
|
103028
|
-
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
103029
|
-
p = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
103030
|
-
if (p === "h2") {
|
|
103031
|
-
haveNPN = true;
|
|
103032
|
-
break;
|
|
103033
|
-
}
|
|
103034
|
-
_i$1++;
|
|
103035
|
-
}
|
|
103036
|
-
if (!haveNPN) {
|
|
103080
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "h2")) {
|
|
103037
103081
|
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "h2");
|
|
103038
103082
|
}
|
|
103083
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1")) {
|
|
103084
|
+
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "http/1.1");
|
|
103085
|
+
}
|
|
103039
103086
|
if (s.TLSNextProto === false) {
|
|
103040
103087
|
s.TLSNextProto = $makeMap($String.keyFor, []);
|
|
103041
103088
|
}
|
|
@@ -103063,7 +103110,7 @@ $packages["net/http"] = (function() {
|
|
|
103063
103110
|
}; })(conf);
|
|
103064
103111
|
_key = "h2"; (s.TLSNextProto || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: protoHandler };
|
|
103065
103112
|
$s = -1; return $ifaceNil;
|
|
103066
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2ConfigureServer }; } $f._1 = _1; $f._i = _i; $f.
|
|
103113
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2ConfigureServer }; } $f._1 = _1; $f._i = _i; $f._key = _key; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._ref = _ref; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f.conf = conf; $f.cs = cs; $f.h1 = h1; $f.h2 = h2; $f.haveRequired = haveRequired; $f.i = i; $f.protoHandler = protoHandler; $f.s = s; $f.sawBad = sawBad; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
103067
103114
|
};
|
|
103068
103115
|
http2ServeConnOpts.ptr.prototype.context = function() {
|
|
103069
103116
|
var o;
|
|
@@ -103423,7 +103470,9 @@ $packages["net/http"] = (function() {
|
|
|
103423
103470
|
}
|
|
103424
103471
|
_r$2 = CanonicalHeaderKey(v); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
103425
103472
|
cv = _r$2;
|
|
103426
|
-
|
|
103473
|
+
if ($keys(sc.canonHeader).length < 32) {
|
|
103474
|
+
_key = v; (sc.canonHeader || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: cv };
|
|
103475
|
+
}
|
|
103427
103476
|
$s = -1; return cv;
|
|
103428
103477
|
/* */ } return; } if ($f === undefined) { $f = { $blk: http2serverConn.ptr.prototype.canonicalHeader }; } $f._entry = _entry; $f._entry$1 = _entry$1; $f._key = _key; $f._r$2 = _r$2; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.cv = cv; $f.ok = ok; $f.sc = sc; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
103429
103478
|
};
|
|
@@ -103536,8 +103585,8 @@ $packages["net/http"] = (function() {
|
|
|
103536
103585
|
};
|
|
103537
103586
|
http2serverConn.prototype.notePanic = function() { return this.$val.notePanic(); };
|
|
103538
103587
|
http2serverConn.ptr.prototype.serve = function() {
|
|
103539
|
-
var _1, _arg, _arg$1, _arg$2, _arg$3, _arg$4, _arg$5, _arg$6, _arg$7, _r$10, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _ref, _selection, _tuple, _v, diff, err, gracefulShutdownComplete, loopNum, m, msg, ok, res, res$1, sc, se, sentGoAway, settingsTimer, v, v$1, v$2, v$3, wr, x$4, $s, $deferred, $r;
|
|
103540
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _arg = $f._arg; _arg$1 = $f._arg$1; _arg$2 = $f._arg$2; _arg$3 = $f._arg$3; _arg$4 = $f._arg$4; _arg$5 = $f._arg$5; _arg$6 = $f._arg$6; _arg$7 = $f._arg$7; _r$10 = $f._r$10; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _selection = $f._selection; _tuple = $f._tuple; _v = $f._v; diff = $f.diff; err = $f.err; gracefulShutdownComplete = $f.gracefulShutdownComplete; loopNum = $f.loopNum; m = $f.m; msg = $f.msg; ok = $f.ok; res = $f.res; res$1 = $f.res$1; sc = $f.sc; se = $f.se; sentGoAway = $f.sentGoAway; settingsTimer = $f.settingsTimer; v = $f.v; v$1 = $f.v$1; v$2 = $f.v$2; v$3 = $f.v$3; wr = $f.wr; x$4 = $f.x$4; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
103588
|
+
var _1, _arg, _arg$1, _arg$2, _arg$3, _arg$4, _arg$5, _arg$6, _arg$7, _r$10, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _ref, _selection, _selection$1, _tuple, _v, diff, err, gracefulShutdownComplete, loopNum, m, msg, ok, res, res$1, sc, se, sentGoAway, settingsTimer, v, v$1, v$2, v$3, wr, wroteRes, x$4, $s, $deferred, $r;
|
|
103589
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _arg = $f._arg; _arg$1 = $f._arg$1; _arg$2 = $f._arg$2; _arg$3 = $f._arg$3; _arg$4 = $f._arg$4; _arg$5 = $f._arg$5; _arg$6 = $f._arg$6; _arg$7 = $f._arg$7; _r$10 = $f._r$10; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _selection = $f._selection; _selection$1 = $f._selection$1; _tuple = $f._tuple; _v = $f._v; diff = $f.diff; err = $f.err; gracefulShutdownComplete = $f.gracefulShutdownComplete; loopNum = $f.loopNum; m = $f.m; msg = $f.msg; ok = $f.ok; res = $f.res; res$1 = $f.res$1; sc = $f.sc; se = $f.se; sentGoAway = $f.sentGoAway; settingsTimer = $f.settingsTimer; v = $f.v; v$1 = $f.v$1; v$2 = $f.v$2; v$3 = $f.v$3; wr = $f.wr; wroteRes = $f.wroteRes; x$4 = $f.x$4; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
103541
103590
|
sc = this;
|
|
103542
103591
|
$r = sc.serveG.check(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103543
103592
|
$deferred.push([$methodVal(sc, "notePanic"), []]);
|
|
@@ -103612,13 +103661,27 @@ $packages["net/http"] = (function() {
|
|
|
103612
103661
|
$s = 25; continue;
|
|
103613
103662
|
/* } else if (_selection[0] === 2) { */ case 22:
|
|
103614
103663
|
res$1 = $clone(_selection[1][0], http2readFrameResult);
|
|
103615
|
-
|
|
103616
|
-
/* */ if (!_r$6) { $s = 31; continue; }
|
|
103664
|
+
/* */ if (sc.writingFrameAsync) { $s = 31; continue; }
|
|
103617
103665
|
/* */ $s = 32; continue;
|
|
103618
|
-
/* if (
|
|
103619
|
-
$
|
|
103666
|
+
/* if (sc.writingFrameAsync) { */ case 31:
|
|
103667
|
+
_selection$1 = $select([[sc.wroteFrameCh], []]);
|
|
103668
|
+
/* */ if (_selection$1[0] === 0) { $s = 33; continue; }
|
|
103669
|
+
/* */ if (_selection$1[0] === 1) { $s = 34; continue; }
|
|
103670
|
+
/* */ $s = 35; continue;
|
|
103671
|
+
/* if (_selection$1[0] === 0) { */ case 33:
|
|
103672
|
+
wroteRes = $clone(_selection$1[1][0], http2frameWriteResult);
|
|
103673
|
+
$r = sc.wroteFrame($clone(wroteRes, http2frameWriteResult)); /* */ $s = 36; case 36: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103674
|
+
$s = 35; continue;
|
|
103675
|
+
/* } else if (_selection$1[0] === 1) { */ case 34:
|
|
103676
|
+
/* } */ case 35:
|
|
103620
103677
|
/* } */ case 32:
|
|
103621
|
-
$
|
|
103678
|
+
_r$6 = sc.processFrameFromReader($clone(res$1, http2readFrameResult)); /* */ $s = 39; case 39: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
103679
|
+
/* */ if (!_r$6) { $s = 37; continue; }
|
|
103680
|
+
/* */ $s = 38; continue;
|
|
103681
|
+
/* if (!_r$6) { */ case 37:
|
|
103682
|
+
$s = -1; return;
|
|
103683
|
+
/* } */ case 38:
|
|
103684
|
+
$r = res$1.readMore(); /* */ $s = 40; case 40: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103622
103685
|
if (!(settingsTimer === ptrType$57.nil)) {
|
|
103623
103686
|
settingsTimer.Stop();
|
|
103624
103687
|
settingsTimer = ptrType$57.nil;
|
|
@@ -103626,78 +103689,78 @@ $packages["net/http"] = (function() {
|
|
|
103626
103689
|
$s = 25; continue;
|
|
103627
103690
|
/* } else if (_selection[0] === 3) { */ case 23:
|
|
103628
103691
|
m = $clone(_selection[1][0], http2bodyReadMsg);
|
|
103629
|
-
$r = sc.noteBodyRead(m.st, m.n); /* */ $s =
|
|
103692
|
+
$r = sc.noteBodyRead(m.st, m.n); /* */ $s = 41; case 41: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103630
103693
|
$s = 25; continue;
|
|
103631
103694
|
/* } else if (_selection[0] === 4) { */ case 24:
|
|
103632
103695
|
msg = _selection[1][0];
|
|
103633
103696
|
_ref = msg;
|
|
103634
|
-
/* */ if ($assertType(_ref, funcType$1, true)[1]) { $s =
|
|
103635
|
-
/* */ if ($assertType(_ref, ptrType$10, true)[1]) { $s =
|
|
103636
|
-
/* */ if ($assertType(_ref, ptrType$62, true)[1]) { $s =
|
|
103637
|
-
/* */ $s =
|
|
103638
|
-
/* if ($assertType(_ref, funcType$1, true)[1]) { */ case
|
|
103697
|
+
/* */ if ($assertType(_ref, funcType$1, true)[1]) { $s = 42; continue; }
|
|
103698
|
+
/* */ if ($assertType(_ref, ptrType$10, true)[1]) { $s = 43; continue; }
|
|
103699
|
+
/* */ if ($assertType(_ref, ptrType$62, true)[1]) { $s = 44; continue; }
|
|
103700
|
+
/* */ $s = 45; continue;
|
|
103701
|
+
/* if ($assertType(_ref, funcType$1, true)[1]) { */ case 42:
|
|
103639
103702
|
v = _ref.$val;
|
|
103640
|
-
$r = v(loopNum); /* */ $s =
|
|
103641
|
-
$s =
|
|
103642
|
-
/* } else if ($assertType(_ref, ptrType$10, true)[1]) { */ case
|
|
103703
|
+
$r = v(loopNum); /* */ $s = 47; case 47: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103704
|
+
$s = 46; continue;
|
|
103705
|
+
/* } else if ($assertType(_ref, ptrType$10, true)[1]) { */ case 43:
|
|
103643
103706
|
v$1 = _ref.$val;
|
|
103644
103707
|
_1 = v$1;
|
|
103645
|
-
/* */ if (_1 === (http2settingsTimerMsg)) { $s =
|
|
103646
|
-
/* */ if (_1 === (http2idleTimerMsg)) { $s =
|
|
103647
|
-
/* */ if (_1 === (http2shutdownTimerMsg)) { $s =
|
|
103648
|
-
/* */ if (_1 === (http2gracefulShutdownMsg)) { $s =
|
|
103649
|
-
/* */ $s =
|
|
103650
|
-
/* if (_1 === (http2settingsTimerMsg)) { */ case
|
|
103651
|
-
_r$7 = sc.conn.RemoteAddr(); /* */ $s =
|
|
103708
|
+
/* */ if (_1 === (http2settingsTimerMsg)) { $s = 49; continue; }
|
|
103709
|
+
/* */ if (_1 === (http2idleTimerMsg)) { $s = 50; continue; }
|
|
103710
|
+
/* */ if (_1 === (http2shutdownTimerMsg)) { $s = 51; continue; }
|
|
103711
|
+
/* */ if (_1 === (http2gracefulShutdownMsg)) { $s = 52; continue; }
|
|
103712
|
+
/* */ $s = 53; continue;
|
|
103713
|
+
/* if (_1 === (http2settingsTimerMsg)) { */ case 49:
|
|
103714
|
+
_r$7 = sc.conn.RemoteAddr(); /* */ $s = 55; case 55: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
103652
103715
|
_arg$6 = _r$7;
|
|
103653
|
-
$r = sc.logf("timeout waiting for SETTINGS frames from %v", new sliceType([_arg$6])); /* */ $s =
|
|
103716
|
+
$r = sc.logf("timeout waiting for SETTINGS frames from %v", new sliceType([_arg$6])); /* */ $s = 56; case 56: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103654
103717
|
$s = -1; return;
|
|
103655
|
-
/* } else if (_1 === (http2idleTimerMsg)) { */ case
|
|
103656
|
-
$r = sc.vlogf("connection is idle", new sliceType([])); /* */ $s =
|
|
103657
|
-
$r = sc.goAway(0); /* */ $s =
|
|
103658
|
-
$s =
|
|
103659
|
-
/* } else if (_1 === (http2shutdownTimerMsg)) { */ case
|
|
103660
|
-
_r$8 = sc.conn.RemoteAddr(); /* */ $s =
|
|
103718
|
+
/* } else if (_1 === (http2idleTimerMsg)) { */ case 50:
|
|
103719
|
+
$r = sc.vlogf("connection is idle", new sliceType([])); /* */ $s = 57; case 57: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103720
|
+
$r = sc.goAway(0); /* */ $s = 58; case 58: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103721
|
+
$s = 54; continue;
|
|
103722
|
+
/* } else if (_1 === (http2shutdownTimerMsg)) { */ case 51:
|
|
103723
|
+
_r$8 = sc.conn.RemoteAddr(); /* */ $s = 59; case 59: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
103661
103724
|
_arg$7 = _r$8;
|
|
103662
|
-
$r = sc.vlogf("GOAWAY close timer fired; closing conn from %v", new sliceType([_arg$7])); /* */ $s =
|
|
103725
|
+
$r = sc.vlogf("GOAWAY close timer fired; closing conn from %v", new sliceType([_arg$7])); /* */ $s = 60; case 60: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103663
103726
|
$s = -1; return;
|
|
103664
|
-
/* } else if (_1 === (http2gracefulShutdownMsg)) { */ case
|
|
103665
|
-
$r = sc.startGracefulShutdownInternal(); /* */ $s =
|
|
103666
|
-
$s =
|
|
103667
|
-
/* } else { */ case
|
|
103727
|
+
/* } else if (_1 === (http2gracefulShutdownMsg)) { */ case 52:
|
|
103728
|
+
$r = sc.startGracefulShutdownInternal(); /* */ $s = 61; case 61: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103729
|
+
$s = 54; continue;
|
|
103730
|
+
/* } else { */ case 53:
|
|
103668
103731
|
$panic(new $String("unknown timer"));
|
|
103669
|
-
/* } */ case
|
|
103670
|
-
case
|
|
103671
|
-
$s =
|
|
103672
|
-
/* } else if ($assertType(_ref, ptrType$62, true)[1]) { */ case
|
|
103732
|
+
/* } */ case 54:
|
|
103733
|
+
case 48:
|
|
103734
|
+
$s = 46; continue;
|
|
103735
|
+
/* } else if ($assertType(_ref, ptrType$62, true)[1]) { */ case 44:
|
|
103673
103736
|
v$2 = _ref.$val;
|
|
103674
|
-
$r = sc.startPush(v$2); /* */ $s =
|
|
103675
|
-
$s =
|
|
103676
|
-
/* } else { */ case
|
|
103737
|
+
$r = sc.startPush(v$2); /* */ $s = 62; case 62: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103738
|
+
$s = 46; continue;
|
|
103739
|
+
/* } else { */ case 45:
|
|
103677
103740
|
v$3 = _ref;
|
|
103678
|
-
_r$9 = fmt.Sprintf("unexpected type %T", new sliceType([v$3])); /* */ $s =
|
|
103741
|
+
_r$9 = fmt.Sprintf("unexpected type %T", new sliceType([v$3])); /* */ $s = 63; case 63: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
103679
103742
|
$panic(new $String(_r$9));
|
|
103680
|
-
/* } */ case
|
|
103743
|
+
/* } */ case 46:
|
|
103681
103744
|
/* } } */ case 25:
|
|
103682
|
-
/* */ if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { $s =
|
|
103683
|
-
/* */ $s =
|
|
103684
|
-
/* if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { */ case
|
|
103685
|
-
$r = sc.vlogf("http2: too many control frames in send queue, closing connection", new sliceType([])); /* */ $s =
|
|
103745
|
+
/* */ if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { $s = 64; continue; }
|
|
103746
|
+
/* */ $s = 65; continue;
|
|
103747
|
+
/* if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { */ case 64:
|
|
103748
|
+
$r = sc.vlogf("http2: too many control frames in send queue, closing connection", new sliceType([])); /* */ $s = 66; case 66: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103686
103749
|
$s = -1; return;
|
|
103687
|
-
/* } */ case
|
|
103750
|
+
/* } */ case 65:
|
|
103688
103751
|
sentGoAway = sc.inGoAway && !sc.needToSendGoAway && !sc.writingFrame;
|
|
103689
|
-
if (!(sc.goAwayCode === 0)) { _v = false; $s =
|
|
103690
|
-
_r$10 = sc.curOpenStreams(); /* */ $s =
|
|
103691
|
-
_v = _r$10 === 0; case
|
|
103752
|
+
if (!(sc.goAwayCode === 0)) { _v = false; $s = 67; continue s; }
|
|
103753
|
+
_r$10 = sc.curOpenStreams(); /* */ $s = 68; case 68: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
103754
|
+
_v = _r$10 === 0; case 67:
|
|
103692
103755
|
gracefulShutdownComplete = _v;
|
|
103693
|
-
/* */ if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { $s =
|
|
103694
|
-
/* */ $s =
|
|
103695
|
-
/* if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { */ case
|
|
103696
|
-
$r = sc.shutDownIn(http2goAwayTimeout); /* */ $s =
|
|
103697
|
-
/* } */ case
|
|
103756
|
+
/* */ if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { $s = 69; continue; }
|
|
103757
|
+
/* */ $s = 70; continue;
|
|
103758
|
+
/* if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { */ case 69:
|
|
103759
|
+
$r = sc.shutDownIn(http2goAwayTimeout); /* */ $s = 71; case 71: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
103760
|
+
/* } */ case 70:
|
|
103698
103761
|
/* } */ $s = 17; continue; case 18:
|
|
103699
103762
|
$s = -1; return;
|
|
103700
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2serverConn.ptr.prototype.serve }; } $f._1 = _1; $f._arg = _arg; $f._arg$1 = _arg$1; $f._arg$2 = _arg$2; $f._arg$3 = _arg$3; $f._arg$4 = _arg$4; $f._arg$5 = _arg$5; $f._arg$6 = _arg$6; $f._arg$7 = _arg$7; $f._r$10 = _r$10; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._r$8 = _r$8; $f._r$9 = _r$9; $f._ref = _ref; $f._selection = _selection; $f._tuple = _tuple; $f._v = _v; $f.diff = diff; $f.err = err; $f.gracefulShutdownComplete = gracefulShutdownComplete; $f.loopNum = loopNum; $f.m = m; $f.msg = msg; $f.ok = ok; $f.res = res; $f.res$1 = res$1; $f.sc = sc; $f.se = se; $f.sentGoAway = sentGoAway; $f.settingsTimer = settingsTimer; $f.v = v; $f.v$1 = v$1; $f.v$2 = v$2; $f.v$3 = v$3; $f.wr = wr; $f.x$4 = x$4; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
103763
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2serverConn.ptr.prototype.serve }; } $f._1 = _1; $f._arg = _arg; $f._arg$1 = _arg$1; $f._arg$2 = _arg$2; $f._arg$3 = _arg$3; $f._arg$4 = _arg$4; $f._arg$5 = _arg$5; $f._arg$6 = _arg$6; $f._arg$7 = _arg$7; $f._r$10 = _r$10; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._r$8 = _r$8; $f._r$9 = _r$9; $f._ref = _ref; $f._selection = _selection; $f._selection$1 = _selection$1; $f._tuple = _tuple; $f._v = _v; $f.diff = diff; $f.err = err; $f.gracefulShutdownComplete = gracefulShutdownComplete; $f.loopNum = loopNum; $f.m = m; $f.msg = msg; $f.ok = ok; $f.res = res; $f.res$1 = res$1; $f.sc = sc; $f.se = se; $f.sentGoAway = sentGoAway; $f.settingsTimer = settingsTimer; $f.v = v; $f.v$1 = v$1; $f.v$2 = v$2; $f.v$3 = v$3; $f.wr = wr; $f.wroteRes = wroteRes; $f.x$4 = x$4; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
103701
103764
|
};
|
|
103702
103765
|
http2serverConn.prototype.serve = function() { return this.$val.serve(); };
|
|
103703
103766
|
http2serverConn.ptr.prototype.onSettingsTimer = function() {
|
|
@@ -104538,11 +104601,11 @@ $packages["net/http"] = (function() {
|
|
|
104538
104601
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; data = $f.data; err = $f.err; f = $f.f; id = $f.id; pad = $f.pad; sc = $f.sc; st = $f.st; state = $f.state; wrote = $f.wrote; x$10 = $f.x$10; x$11 = $f.x$11; x$12 = $f.x$12; x$13 = $f.x$13; x$14 = $f.x$14; x$15 = $f.x$15; x$4 = $f.x$4; x$5 = $f.x$5; x$6 = $f.x$6; x$7 = $f.x$7; x$8 = $f.x$8; x$9 = $f.x$9; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
104539
104602
|
sc = this;
|
|
104540
104603
|
$r = sc.serveG.check(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
104541
|
-
|
|
104604
|
+
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
104605
|
+
if (sc.inGoAway && (!((sc.goAwayCode === 0)) || id > sc.maxClientStreamID)) {
|
|
104542
104606
|
$s = -1; return $ifaceNil;
|
|
104543
104607
|
}
|
|
104544
104608
|
data = f.Data();
|
|
104545
|
-
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
104546
104609
|
_r$2 = sc.state(id); /* */ $s = 2; case 2: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
104547
104610
|
_tuple = _r$2;
|
|
104548
104611
|
state = _tuple[0];
|
|
@@ -105741,8 +105804,8 @@ $packages["net/http"] = (function() {
|
|
|
105741
105804
|
};
|
|
105742
105805
|
http2responseWriter.prototype.handlerDone = function() { return this.$val.handlerDone(); };
|
|
105743
105806
|
http2responseWriter.ptr.prototype.Push = function(target, opts) {
|
|
105744
|
-
var
|
|
105745
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
105807
|
+
var _entry, _i, _keys, _r$10, _r$11, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _ref, _selection, _selection$1, _tuple, err, err$1, err$2, k, msg, opts, sc, st, target, u, w, wantScheme, $s, $r;
|
|
105808
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _keys = $f._keys; _r$10 = $f._r$10; _r$11 = $f._r$11; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _selection = $f._selection; _selection$1 = $f._selection$1; _tuple = $f._tuple; err = $f.err; err$1 = $f.err$1; err$2 = $f.err$2; k = $f.k; msg = $f.msg; opts = $f.opts; sc = $f.sc; st = $f.st; target = $f.target; u = $f.u; w = $f.w; wantScheme = $f.wantScheme; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
105746
105809
|
w = this;
|
|
105747
105810
|
st = w.rws.stream;
|
|
105748
105811
|
sc = st.sc;
|
|
@@ -105810,44 +105873,41 @@ $packages["net/http"] = (function() {
|
|
|
105810
105873
|
_r$5 = fmt.Errorf("promised request headers cannot include pseudo header %q", new sliceType([new $String(k)])); /* */ $s = 16; case 16: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
105811
105874
|
$s = -1; return _r$5;
|
|
105812
105875
|
/* } */ case 15:
|
|
105813
|
-
|
|
105814
|
-
|
|
105815
|
-
|
|
105816
|
-
/* */ $s =
|
|
105817
|
-
|
|
105818
|
-
|
|
105819
|
-
$s = -1; return _r$7;
|
|
105820
|
-
/* } */ case 20:
|
|
105821
|
-
case 17:
|
|
105876
|
+
/* */ if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { $s = 17; continue; }
|
|
105877
|
+
/* */ $s = 18; continue;
|
|
105878
|
+
/* if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { */ case 17:
|
|
105879
|
+
_r$6 = fmt.Errorf("promised request headers cannot include %q", new sliceType([new $String(k)])); /* */ $s = 19; case 19: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
105880
|
+
$s = -1; return _r$6;
|
|
105881
|
+
/* } */ case 18:
|
|
105822
105882
|
_i++;
|
|
105823
105883
|
/* } */ $s = 12; continue; case 13:
|
|
105824
|
-
_r$
|
|
105825
|
-
err$1 = _r$
|
|
105884
|
+
_r$7 = http2checkValidHTTP2RequestHeaders(opts.Header); /* */ $s = 20; case 20: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
105885
|
+
err$1 = _r$7;
|
|
105826
105886
|
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
105827
105887
|
$s = -1; return err$1;
|
|
105828
105888
|
}
|
|
105829
|
-
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s =
|
|
105830
|
-
/* */ $s =
|
|
105831
|
-
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case
|
|
105832
|
-
_r$
|
|
105833
|
-
$s = -1; return _r$
|
|
105834
|
-
/* } */ case
|
|
105835
|
-
_r$
|
|
105836
|
-
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$
|
|
105837
|
-
_r$
|
|
105838
|
-
_selection = _r$
|
|
105839
|
-
/* */ if (_selection[0] === 0) { $s =
|
|
105840
|
-
/* */ if (_selection[0] === 1) { $s =
|
|
105841
|
-
/* */ if (_selection[0] === 2) { $s =
|
|
105842
|
-
/* */ $s =
|
|
105843
|
-
/* if (_selection[0] === 0) { */ case
|
|
105889
|
+
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s = 21; continue; }
|
|
105890
|
+
/* */ $s = 22; continue;
|
|
105891
|
+
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case 21:
|
|
105892
|
+
_r$8 = fmt.Errorf("method %q must be GET or HEAD", new sliceType([new $String(opts.Method)])); /* */ $s = 23; case 23: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
105893
|
+
$s = -1; return _r$8;
|
|
105894
|
+
/* } */ case 22:
|
|
105895
|
+
_r$9 = http2errChanPool.Get(); /* */ $s = 24; case 24: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
105896
|
+
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$9, chanType));
|
|
105897
|
+
_r$10 = $select([[sc.doneServing], [st.cw], [sc.serveMsgCh, msg]]); /* */ $s = 25; case 25: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
105898
|
+
_selection = _r$10;
|
|
105899
|
+
/* */ if (_selection[0] === 0) { $s = 26; continue; }
|
|
105900
|
+
/* */ if (_selection[0] === 1) { $s = 27; continue; }
|
|
105901
|
+
/* */ if (_selection[0] === 2) { $s = 28; continue; }
|
|
105902
|
+
/* */ $s = 29; continue;
|
|
105903
|
+
/* if (_selection[0] === 0) { */ case 26:
|
|
105844
105904
|
$s = -1; return http2errClientDisconnected;
|
|
105845
|
-
/* } else if (_selection[0] === 1) { */ case
|
|
105905
|
+
/* } else if (_selection[0] === 1) { */ case 27:
|
|
105846
105906
|
$s = -1; return http2errStreamClosed;
|
|
105847
|
-
/* } else if (_selection[0] === 2) { */ case
|
|
105848
|
-
/* } */ case
|
|
105849
|
-
_r$
|
|
105850
|
-
_selection$1 = _r$
|
|
105907
|
+
/* } else if (_selection[0] === 2) { */ case 28:
|
|
105908
|
+
/* } */ case 29:
|
|
105909
|
+
_r$11 = $select([[sc.doneServing], [st.cw], [msg.done]]); /* */ $s = 30; case 30: if($c) { $c = false; _r$11 = _r$11.$blk(); } if (_r$11 && _r$11.$blk !== undefined) { break s; }
|
|
105910
|
+
_selection$1 = _r$11;
|
|
105851
105911
|
if (_selection$1[0] === 0) {
|
|
105852
105912
|
$s = -1; return http2errClientDisconnected;
|
|
105853
105913
|
} else if (_selection$1[0] === 1) {
|
|
@@ -105858,7 +105918,7 @@ $packages["net/http"] = (function() {
|
|
|
105858
105918
|
$s = -1; return err$2;
|
|
105859
105919
|
}
|
|
105860
105920
|
$s = -1; return $ifaceNil;
|
|
105861
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2responseWriter.ptr.prototype.Push }; } $f.
|
|
105921
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: http2responseWriter.ptr.prototype.Push }; } $f._entry = _entry; $f._i = _i; $f._keys = _keys; $f._r$10 = _r$10; $f._r$11 = _r$11; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._r$8 = _r$8; $f._r$9 = _r$9; $f._ref = _ref; $f._selection = _selection; $f._selection$1 = _selection$1; $f._tuple = _tuple; $f.err = err; $f.err$1 = err$1; $f.err$2 = err$2; $f.k = k; $f.msg = msg; $f.opts = opts; $f.sc = sc; $f.st = st; $f.target = target; $f.u = u; $f.w = w; $f.wantScheme = wantScheme; $f.$s = $s; $f.$r = $r; return $f;
|
|
105862
105922
|
};
|
|
105863
105923
|
http2responseWriter.prototype.Push = function(target, opts) { return this.$val.Push(target, opts); };
|
|
105864
105924
|
http2serverConn.ptr.prototype.startPush = function(msg) {
|
|
@@ -106351,8 +106411,8 @@ $packages["net/http"] = (function() {
|
|
|
106351
106411
|
};
|
|
106352
106412
|
http2writeWindowUpdate.prototype.writeFrame = function(ctx) { return this.$val.writeFrame(ctx); };
|
|
106353
106413
|
http2encodeHeaders = function(enc, h, keys) {
|
|
106354
|
-
var _entry, _i, _i$1, _r$2, _r$3, _r$4, _ref, _ref$1, enc, h, isTE, k, keys, sorter, v, vv, $s, $deferred, $r;
|
|
106355
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _i$1 = $f._i$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _ref = $f._ref; _ref$1 = $f._ref$1; enc = $f.enc; h = $f.h; isTE = $f.isTE; k = $f.k; keys = $f.keys; sorter = $f.sorter; v = $f.v; vv = $f.vv; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
106414
|
+
var _entry, _i, _i$1, _r$2, _r$3, _r$4, _ref, _ref$1, _tuple, ascii, enc, h, isTE, k, k$1, keys, sorter, v, vv, $s, $deferred, $r;
|
|
106415
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _i = $f._i; _i$1 = $f._i$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _ref = $f._ref; _ref$1 = $f._ref$1; _tuple = $f._tuple; ascii = $f.ascii; enc = $f.enc; h = $f.h; isTE = $f.isTE; k = $f.k; k$1 = $f.k$1; keys = $f.keys; sorter = $f.sorter; v = $f.v; vv = $f.vv; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
106356
106416
|
/* */ if (keys === sliceType$2.nil) { $s = 1; continue; }
|
|
106357
106417
|
/* */ $s = 2; continue;
|
|
106358
106418
|
/* if (keys === sliceType$2.nil) { */ case 1:
|
|
@@ -106369,38 +106429,46 @@ $packages["net/http"] = (function() {
|
|
|
106369
106429
|
k = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
106370
106430
|
vv = (_entry = h[$String.keyFor(k)], _entry !== undefined ? _entry.v : sliceType$2.nil);
|
|
106371
106431
|
_r$4 = http2lowerHeader(k); /* */ $s = 7; case 7: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
106372
|
-
|
|
106373
|
-
|
|
106432
|
+
_tuple = _r$4;
|
|
106433
|
+
k$1 = _tuple[0];
|
|
106434
|
+
ascii = _tuple[1];
|
|
106435
|
+
/* */ if (!ascii) { $s = 8; continue; }
|
|
106374
106436
|
/* */ $s = 9; continue;
|
|
106375
|
-
/* if (!
|
|
106437
|
+
/* if (!ascii) { */ case 8:
|
|
106376
106438
|
_i++;
|
|
106377
106439
|
/* continue; */ $s = 5; continue;
|
|
106378
106440
|
/* } */ case 9:
|
|
106379
|
-
|
|
106441
|
+
/* */ if (!http2validWireHeaderFieldName(k$1)) { $s = 10; continue; }
|
|
106442
|
+
/* */ $s = 11; continue;
|
|
106443
|
+
/* if (!http2validWireHeaderFieldName(k$1)) { */ case 10:
|
|
106444
|
+
_i++;
|
|
106445
|
+
/* continue; */ $s = 5; continue;
|
|
106446
|
+
/* } */ case 11:
|
|
106447
|
+
isTE = k$1 === "transfer-encoding";
|
|
106380
106448
|
_ref$1 = vv;
|
|
106381
106449
|
_i$1 = 0;
|
|
106382
|
-
/* while (true) { */ case
|
|
106383
|
-
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s =
|
|
106450
|
+
/* while (true) { */ case 12:
|
|
106451
|
+
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s = 13; continue; }
|
|
106384
106452
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
106385
|
-
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s =
|
|
106386
|
-
/* */ $s = 13; continue;
|
|
106387
|
-
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 12:
|
|
106388
|
-
_i$1++;
|
|
106389
|
-
/* continue; */ $s = 10; continue;
|
|
106390
|
-
/* } */ case 13:
|
|
106391
|
-
/* */ if (isTE && !(v === "trailers")) { $s = 14; continue; }
|
|
106453
|
+
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s = 14; continue; }
|
|
106392
106454
|
/* */ $s = 15; continue;
|
|
106393
|
-
/* if (
|
|
106455
|
+
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 14:
|
|
106394
106456
|
_i$1++;
|
|
106395
|
-
/* continue; */ $s =
|
|
106457
|
+
/* continue; */ $s = 12; continue;
|
|
106396
106458
|
/* } */ case 15:
|
|
106397
|
-
|
|
106459
|
+
/* */ if (isTE && !(v === "trailers")) { $s = 16; continue; }
|
|
106460
|
+
/* */ $s = 17; continue;
|
|
106461
|
+
/* if (isTE && !(v === "trailers")) { */ case 16:
|
|
106462
|
+
_i$1++;
|
|
106463
|
+
/* continue; */ $s = 12; continue;
|
|
106464
|
+
/* } */ case 17:
|
|
106465
|
+
$r = http2encKV(enc, k$1, v); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
106398
106466
|
_i$1++;
|
|
106399
|
-
/* } */ $s =
|
|
106467
|
+
/* } */ $s = 12; continue; case 13:
|
|
106400
106468
|
_i++;
|
|
106401
106469
|
/* } */ $s = 5; continue; case 6:
|
|
106402
106470
|
$s = -1; return;
|
|
106403
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2encodeHeaders }; } $f._entry = _entry; $f._i = _i; $f._i$1 = _i$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._ref = _ref; $f._ref$1 = _ref$1; $f.enc = enc; $f.h = h; $f.isTE = isTE; $f.k = k; $f.keys = keys; $f.sorter = sorter; $f.v = v; $f.vv = vv; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
106471
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: http2encodeHeaders }; } $f._entry = _entry; $f._i = _i; $f._i$1 = _i$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._ref = _ref; $f._ref$1 = _ref$1; $f._tuple = _tuple; $f.ascii = ascii; $f.enc = enc; $f.h = h; $f.isTE = isTE; $f.k = k; $f.k$1 = k$1; $f.keys = keys; $f.sorter = sorter; $f.v = v; $f.vv = vv; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
106404
106472
|
};
|
|
106405
106473
|
http2FrameWriteRequest.ptr.prototype.StreamID = function() {
|
|
106406
106474
|
var _tuple, ok, se, wr;
|
|
@@ -106579,16 +106647,16 @@ $packages["net/http"] = (function() {
|
|
|
106579
106647
|
}
|
|
106580
106648
|
x$4 = ln - 1 >> 0;
|
|
106581
106649
|
q = (x$5 = p.$get(), ((x$4 < 0 || x$4 >= x$5.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$5.$array[x$5.$offset + x$4]));
|
|
106582
|
-
(x$6 = p.$get(), ((x$4 < 0 || x$4 >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + x$4] = ptrType$
|
|
106650
|
+
(x$6 = p.$get(), ((x$4 < 0 || x$4 >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + x$4] = ptrType$81.nil));
|
|
106583
106651
|
p.$set($subslice((p.$get()), 0, x$4));
|
|
106584
106652
|
return q;
|
|
106585
106653
|
};
|
|
106586
106654
|
http2NewPriorityWriteScheduler = function(cfg) {
|
|
106587
106655
|
var _key, cfg, ws;
|
|
106588
|
-
if (cfg === ptrType$
|
|
106656
|
+
if (cfg === ptrType$82.nil) {
|
|
106589
106657
|
cfg = new http2PriorityWriteSchedulerConfig.ptr(10, 10, false);
|
|
106590
106658
|
}
|
|
106591
|
-
ws = new http2priorityWriteScheduler.ptr(new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$
|
|
106659
|
+
ws = new http2priorityWriteScheduler.ptr(new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil), {}, 0, sliceType$25.nil, sliceType$25.nil, cfg.MaxClosedNodesInTree, cfg.MaxIdleNodesInTree, 0, cfg.ThrottleOutOfOrderWrites, sliceType$25.nil, http2writeQueuePool.nil);
|
|
106592
106660
|
_key = 0; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: ws.root };
|
|
106593
106661
|
if (cfg.ThrottleOutOfOrderWrites) {
|
|
106594
106662
|
ws.writeThrottleLimit = 1024;
|
|
@@ -106607,24 +106675,24 @@ $packages["net/http"] = (function() {
|
|
|
106607
106675
|
return;
|
|
106608
106676
|
}
|
|
106609
106677
|
parent$1 = n.parent;
|
|
106610
|
-
if (!(parent$1 === ptrType$
|
|
106611
|
-
if (n.prev === ptrType$
|
|
106678
|
+
if (!(parent$1 === ptrType$83.nil)) {
|
|
106679
|
+
if (n.prev === ptrType$83.nil) {
|
|
106612
106680
|
parent$1.kids = n.next;
|
|
106613
106681
|
} else {
|
|
106614
106682
|
n.prev.next = n.next;
|
|
106615
106683
|
}
|
|
106616
|
-
if (!(n.next === ptrType$
|
|
106684
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
106617
106685
|
n.next.prev = n.prev;
|
|
106618
106686
|
}
|
|
106619
106687
|
}
|
|
106620
106688
|
n.parent = parent;
|
|
106621
|
-
if (parent === ptrType$
|
|
106622
|
-
n.next = ptrType$
|
|
106623
|
-
n.prev = ptrType$
|
|
106689
|
+
if (parent === ptrType$83.nil) {
|
|
106690
|
+
n.next = ptrType$83.nil;
|
|
106691
|
+
n.prev = ptrType$83.nil;
|
|
106624
106692
|
} else {
|
|
106625
106693
|
n.next = parent.kids;
|
|
106626
|
-
n.prev = ptrType$
|
|
106627
|
-
if (!(n.next === ptrType$
|
|
106694
|
+
n.prev = ptrType$83.nil;
|
|
106695
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
106628
106696
|
n.next.prev = n;
|
|
106629
106697
|
}
|
|
106630
106698
|
parent.kids = n;
|
|
@@ -106636,7 +106704,7 @@ $packages["net/http"] = (function() {
|
|
|
106636
106704
|
n = this;
|
|
106637
106705
|
n.bytes = (x$4 = n.bytes, x$5 = b, new $Int64(x$4.$high + x$5.$high, x$4.$low + x$5.$low));
|
|
106638
106706
|
while (true) {
|
|
106639
|
-
if (!(!(n === ptrType$
|
|
106707
|
+
if (!(!(n === ptrType$83.nil))) { break; }
|
|
106640
106708
|
n.subtreeBytes = (x$6 = n.subtreeBytes, x$7 = b, new $Int64(x$6.$high + x$7.$high, x$6.$low + x$7.$low));
|
|
106641
106709
|
n = n.parent;
|
|
106642
106710
|
}
|
|
@@ -106654,7 +106722,7 @@ $packages["net/http"] = (function() {
|
|
|
106654
106722
|
/* if (_v) { */ case 1:
|
|
106655
106723
|
$s = -1; return true;
|
|
106656
106724
|
/* } */ case 2:
|
|
106657
|
-
if (n.kids === ptrType$
|
|
106725
|
+
if (n.kids === ptrType$83.nil) {
|
|
106658
106726
|
$s = -1; return false;
|
|
106659
106727
|
}
|
|
106660
106728
|
if (!((n.id === 0))) {
|
|
@@ -106664,7 +106732,7 @@ $packages["net/http"] = (function() {
|
|
|
106664
106732
|
needSort = false;
|
|
106665
106733
|
k = n.kids.next;
|
|
106666
106734
|
while (true) {
|
|
106667
|
-
if (!(!(k === ptrType$
|
|
106735
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106668
106736
|
if (!((k.weight === w))) {
|
|
106669
106737
|
needSort = true;
|
|
106670
106738
|
break;
|
|
@@ -106676,7 +106744,7 @@ $packages["net/http"] = (function() {
|
|
|
106676
106744
|
/* if (!needSort) { */ case 5:
|
|
106677
106745
|
k$1 = n.kids;
|
|
106678
106746
|
/* while (true) { */ case 7:
|
|
106679
|
-
/* if (!(!(k$1 === ptrType$
|
|
106747
|
+
/* if (!(!(k$1 === ptrType$83.nil))) { break; } */ if(!(!(k$1 === ptrType$83.nil))) { $s = 8; continue; }
|
|
106680
106748
|
_r$3 = k$1.walkReadyInOrder(openParent, tmp, f); /* */ $s = 11; case 11: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
106681
106749
|
/* */ if (_r$3) { $s = 9; continue; }
|
|
106682
106750
|
/* */ $s = 10; continue;
|
|
@@ -106689,9 +106757,9 @@ $packages["net/http"] = (function() {
|
|
|
106689
106757
|
/* } */ case 6:
|
|
106690
106758
|
tmp.$set($subslice((tmp.$get()), 0, 0));
|
|
106691
106759
|
while (true) {
|
|
106692
|
-
if (!(!(n.kids === ptrType$
|
|
106760
|
+
if (!(!(n.kids === ptrType$83.nil))) { break; }
|
|
106693
106761
|
tmp.$set($append(tmp.$get(), n.kids));
|
|
106694
|
-
n.kids.setParent(ptrType$
|
|
106762
|
+
n.kids.setParent(ptrType$83.nil);
|
|
106695
106763
|
}
|
|
106696
106764
|
$r = sort.Sort(((x$4 = tmp.$get(), $subslice(new http2sortPriorityNodeSiblings(x$4.$array), x$4.$offset, x$4.$offset + x$4.$length)))); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
106697
106765
|
i = tmp.$get().$length - 1 >> 0;
|
|
@@ -106702,7 +106770,7 @@ $packages["net/http"] = (function() {
|
|
|
106702
106770
|
}
|
|
106703
106771
|
k$2 = n.kids;
|
|
106704
106772
|
/* while (true) { */ case 13:
|
|
106705
|
-
/* if (!(!(k$2 === ptrType$
|
|
106773
|
+
/* if (!(!(k$2 === ptrType$83.nil))) { break; } */ if(!(!(k$2 === ptrType$83.nil))) { $s = 14; continue; }
|
|
106706
106774
|
_r$4 = k$2.walkReadyInOrder(openParent, tmp, f); /* */ $s = 17; case 17: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
106707
106775
|
/* */ if (_r$4) { $s = 15; continue; }
|
|
106708
106776
|
/* */ $s = 16; continue;
|
|
@@ -106754,10 +106822,10 @@ $packages["net/http"] = (function() {
|
|
|
106754
106822
|
var _entry, _entry$1, _key, _r$2, curr, n, options, parent, streamID, ws, $s, $r;
|
|
106755
106823
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _key = $f._key; _r$2 = $f._r$2; curr = $f.curr; n = $f.n; options = $f.options; parent = $f.parent; streamID = $f.streamID; ws = $f.ws; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
106756
106824
|
ws = this;
|
|
106757
|
-
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106758
|
-
/* */ if (!(curr === ptrType$
|
|
106825
|
+
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106826
|
+
/* */ if (!(curr === ptrType$83.nil)) { $s = 1; continue; }
|
|
106759
106827
|
/* */ $s = 2; continue;
|
|
106760
|
-
/* if (!(curr === ptrType$
|
|
106828
|
+
/* if (!(curr === ptrType$83.nil)) { */ case 1:
|
|
106761
106829
|
/* */ if (!((curr.state === 2))) { $s = 3; continue; }
|
|
106762
106830
|
/* */ $s = 4; continue;
|
|
106763
106831
|
/* if (!((curr.state === 2))) { */ case 3:
|
|
@@ -106767,11 +106835,11 @@ $packages["net/http"] = (function() {
|
|
|
106767
106835
|
curr.state = 0;
|
|
106768
106836
|
$s = -1; return;
|
|
106769
106837
|
/* } */ case 2:
|
|
106770
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106771
|
-
if (parent === ptrType$
|
|
106838
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
106839
|
+
if (parent === ptrType$83.nil) {
|
|
106772
106840
|
parent = ws.root;
|
|
106773
106841
|
}
|
|
106774
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106842
|
+
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get(), http2writeQueue), streamID, 15, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
106775
106843
|
n.setParent(parent);
|
|
106776
106844
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
106777
106845
|
if (streamID > ws.maxID) {
|
|
@@ -106789,26 +106857,26 @@ $packages["net/http"] = (function() {
|
|
|
106789
106857
|
if (streamID === 0) {
|
|
106790
106858
|
$panic(new $String("violation of WriteScheduler interface: cannot close stream 0"));
|
|
106791
106859
|
}
|
|
106792
|
-
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106860
|
+
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { $s = 1; continue; }
|
|
106793
106861
|
/* */ $s = 2; continue;
|
|
106794
|
-
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106862
|
+
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { */ case 1:
|
|
106795
106863
|
_r$2 = fmt.Sprintf("violation of WriteScheduler interface: unknown stream %d", new sliceType([new $Uint32(streamID)])); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
106796
106864
|
$panic(new $String(_r$2));
|
|
106797
106865
|
/* } */ case 2:
|
|
106798
|
-
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106866
|
+
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { $s = 4; continue; }
|
|
106799
106867
|
/* */ $s = 5; continue;
|
|
106800
|
-
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106868
|
+
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { */ case 4:
|
|
106801
106869
|
_r$3 = fmt.Sprintf("violation of WriteScheduler interface: stream %d already closed", new sliceType([new $Uint32(streamID)])); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
106802
106870
|
$panic(new $String(_r$3));
|
|
106803
106871
|
/* } */ case 5:
|
|
106804
|
-
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$
|
|
106872
|
+
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$83.nil);
|
|
106805
106873
|
n.state = 1;
|
|
106806
106874
|
n.addBytes((x$4 = n.bytes, new $Int64(-x$4.$high, -x$4.$low)));
|
|
106807
106875
|
q[0] = $clone(n.q, http2writeQueue);
|
|
106808
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106876
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q[0]);
|
|
106809
106877
|
n.q.s = sliceType$24.nil;
|
|
106810
106878
|
if (ws.maxClosedNodesInTree > 0) {
|
|
106811
|
-
ws.addClosedOrIdleNode((ws.$ptr_closedNodes || (ws.$ptr_closedNodes = new ptrType$
|
|
106879
|
+
ws.addClosedOrIdleNode((ws.$ptr_closedNodes || (ws.$ptr_closedNodes = new ptrType$85(function() { return this.$target.closedNodes; }, function($v) { this.$target.closedNodes = $v; }, ws))), ws.maxClosedNodesInTree, n);
|
|
106812
106880
|
} else {
|
|
106813
106881
|
ws.removeNode(n);
|
|
106814
106882
|
}
|
|
@@ -106822,19 +106890,19 @@ $packages["net/http"] = (function() {
|
|
|
106822
106890
|
if (streamID === 0) {
|
|
106823
106891
|
$panic(new $String("adjustPriority on root"));
|
|
106824
106892
|
}
|
|
106825
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
106826
|
-
if (n === ptrType$
|
|
106893
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106894
|
+
if (n === ptrType$83.nil) {
|
|
106827
106895
|
if (streamID <= ws.maxID || (ws.maxIdleNodesInTree === 0)) {
|
|
106828
106896
|
return;
|
|
106829
106897
|
}
|
|
106830
106898
|
ws.maxID = streamID;
|
|
106831
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
106899
|
+
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get(), http2writeQueue), streamID, 15, 2, new $Int64(0, 0), new $Int64(0, 0), ptrType$83.nil, ptrType$83.nil, ptrType$83.nil, ptrType$83.nil);
|
|
106832
106900
|
n.setParent(ws.root);
|
|
106833
106901
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
106834
|
-
ws.addClosedOrIdleNode((ws.$ptr_idleNodes || (ws.$ptr_idleNodes = new ptrType$
|
|
106902
|
+
ws.addClosedOrIdleNode((ws.$ptr_idleNodes || (ws.$ptr_idleNodes = new ptrType$85(function() { return this.$target.idleNodes; }, function($v) { this.$target.idleNodes = $v; }, ws))), ws.maxIdleNodesInTree, n);
|
|
106835
106903
|
}
|
|
106836
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
106837
|
-
if (parent === ptrType$
|
|
106904
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
106905
|
+
if (parent === ptrType$83.nil) {
|
|
106838
106906
|
n.setParent(ws.root);
|
|
106839
106907
|
n.weight = 15;
|
|
106840
106908
|
return;
|
|
@@ -106844,7 +106912,7 @@ $packages["net/http"] = (function() {
|
|
|
106844
106912
|
}
|
|
106845
106913
|
x$4 = parent.parent;
|
|
106846
106914
|
while (true) {
|
|
106847
|
-
if (!(!(x$4 === ptrType$
|
|
106915
|
+
if (!(!(x$4 === ptrType$83.nil))) { break; }
|
|
106848
106916
|
if (x$4 === n) {
|
|
106849
106917
|
parent.setParent(n.parent);
|
|
106850
106918
|
break;
|
|
@@ -106854,7 +106922,7 @@ $packages["net/http"] = (function() {
|
|
|
106854
106922
|
if (priority.Exclusive) {
|
|
106855
106923
|
k = parent.kids;
|
|
106856
106924
|
while (true) {
|
|
106857
|
-
if (!(!(k === ptrType$
|
|
106925
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106858
106926
|
next = k.next;
|
|
106859
106927
|
if (!(k === n)) {
|
|
106860
106928
|
k.setParent(n);
|
|
@@ -106869,13 +106937,13 @@ $packages["net/http"] = (function() {
|
|
|
106869
106937
|
http2priorityWriteScheduler.ptr.prototype.Push = function(wr) {
|
|
106870
106938
|
var _entry, id, n, wr, ws;
|
|
106871
106939
|
ws = this;
|
|
106872
|
-
n = ptrType$
|
|
106940
|
+
n = ptrType$83.nil;
|
|
106873
106941
|
id = $clone(wr, http2FrameWriteRequest).StreamID();
|
|
106874
106942
|
if (id === 0) {
|
|
106875
106943
|
n = ws.root;
|
|
106876
106944
|
} else {
|
|
106877
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$
|
|
106878
|
-
if (n === ptrType$
|
|
106945
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
106946
|
+
if (n === ptrType$83.nil) {
|
|
106879
106947
|
if ($clone(wr, http2FrameWriteRequest).DataSize() > 0) {
|
|
106880
106948
|
$panic(new $String("add DATA on non-open stream"));
|
|
106881
106949
|
}
|
|
@@ -106894,7 +106962,7 @@ $packages["net/http"] = (function() {
|
|
|
106894
106962
|
wr[0] = new http2FrameWriteRequest.ptr($ifaceNil, ptrType$5.nil, $chanNil);
|
|
106895
106963
|
ok[0] = false;
|
|
106896
106964
|
ws[0] = this;
|
|
106897
|
-
_r$2 = ws[0].root.walkReadyInOrder(false, (ws[0].$ptr_tmp || (ws[0].$ptr_tmp = new ptrType$
|
|
106965
|
+
_r$2 = ws[0].root.walkReadyInOrder(false, (ws[0].$ptr_tmp || (ws[0].$ptr_tmp = new ptrType$85(function() { return this.$target.tmp; }, function($v) { this.$target.tmp = $v; }, ws[0]))), (function(ok, wr, ws) { return function(n, openParent) {
|
|
106898
106966
|
var _tuple, limit, n, openParent;
|
|
106899
106967
|
limit = 2147483647;
|
|
106900
106968
|
if (openParent) {
|
|
@@ -106946,11 +107014,11 @@ $packages["net/http"] = (function() {
|
|
|
106946
107014
|
ws = this;
|
|
106947
107015
|
k = n.kids;
|
|
106948
107016
|
while (true) {
|
|
106949
|
-
if (!(!(k === ptrType$
|
|
107017
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
106950
107018
|
k.setParent(n.parent);
|
|
106951
107019
|
k = k.next;
|
|
106952
107020
|
}
|
|
106953
|
-
n.setParent(ptrType$
|
|
107021
|
+
n.setParent(ptrType$83.nil);
|
|
106954
107022
|
delete ws.nodes[$Uint32.keyFor(n.id)];
|
|
106955
107023
|
};
|
|
106956
107024
|
http2priorityWriteScheduler.prototype.removeNode = function(n) { return this.$val.removeNode(n); };
|
|
@@ -106965,14 +107033,14 @@ $packages["net/http"] = (function() {
|
|
|
106965
107033
|
http2randomWriteScheduler.ptr.prototype.CloseStream = function(streamID) {
|
|
106966
107034
|
var _entry, _tuple, ok, q, streamID, ws;
|
|
106967
107035
|
ws = this;
|
|
106968
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
107036
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
106969
107037
|
q = _tuple[0];
|
|
106970
107038
|
ok = _tuple[1];
|
|
106971
107039
|
if (!ok) {
|
|
106972
107040
|
return;
|
|
106973
107041
|
}
|
|
106974
107042
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
106975
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107043
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
106976
107044
|
};
|
|
106977
107045
|
http2randomWriteScheduler.prototype.CloseStream = function(streamID) { return this.$val.CloseStream(streamID); };
|
|
106978
107046
|
http2randomWriteScheduler.ptr.prototype.AdjustStream = function(streamID, priority) {
|
|
@@ -106988,11 +107056,11 @@ $packages["net/http"] = (function() {
|
|
|
106988
107056
|
ws.zero.push($clone(wr, http2FrameWriteRequest));
|
|
106989
107057
|
return;
|
|
106990
107058
|
}
|
|
106991
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
107059
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
106992
107060
|
q = _tuple[0];
|
|
106993
107061
|
ok = _tuple[1];
|
|
106994
107062
|
if (!ok) {
|
|
106995
|
-
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107063
|
+
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get();
|
|
106996
107064
|
_key = id; (ws.sq || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: q };
|
|
106997
107065
|
}
|
|
106998
107066
|
q.push($clone(wr, http2FrameWriteRequest));
|
|
@@ -107022,7 +107090,7 @@ $packages["net/http"] = (function() {
|
|
|
107022
107090
|
if (ok) {
|
|
107023
107091
|
if (q.empty()) {
|
|
107024
107092
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
107025
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
107093
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
107026
107094
|
}
|
|
107027
107095
|
return [wr, true];
|
|
107028
107096
|
}
|
|
@@ -107194,10 +107262,10 @@ $packages["net/http"] = (function() {
|
|
|
107194
107262
|
var _entry, _entry$1, _i, _keys, _r$2, _ref, _tmp, _tmp$1, exclude, h, hs, k, kvs, vv, $s, $r;
|
|
107195
107263
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _i = $f._i; _keys = $f._keys; _r$2 = $f._r$2; _ref = $f._ref; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; exclude = $f.exclude; h = $f.h; hs = $f.hs; k = $f.k; kvs = $f.kvs; vv = $f.vv; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
107196
107264
|
kvs = sliceType$5.nil;
|
|
107197
|
-
hs = ptrType$
|
|
107265
|
+
hs = ptrType$86.nil;
|
|
107198
107266
|
h = this.$val;
|
|
107199
107267
|
_r$2 = headerSorterPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
107200
|
-
hs = $assertType(_r$2, ptrType$
|
|
107268
|
+
hs = $assertType(_r$2, ptrType$86);
|
|
107201
107269
|
if (hs.kvs.$capacity < $keys(h).length) {
|
|
107202
107270
|
hs.kvs = $makeSlice(sliceType$5, 0, $keys(h).length);
|
|
107203
107271
|
}
|
|
@@ -107562,10 +107630,10 @@ $packages["net/http"] = (function() {
|
|
|
107562
107630
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; r = $f.r; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
107563
107631
|
r = this;
|
|
107564
107632
|
if (r.MultipartForm === multipartByReader) {
|
|
107565
|
-
$s = -1; return [ptrType$
|
|
107633
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: MultipartReader called twice")];
|
|
107566
107634
|
}
|
|
107567
107635
|
if (!(r.MultipartForm === ptrType$20.nil)) {
|
|
107568
|
-
$s = -1; return [ptrType$
|
|
107636
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: multipart handled by ParseMultipartForm")];
|
|
107569
107637
|
}
|
|
107570
107638
|
r.MultipartForm = multipartByReader;
|
|
107571
107639
|
_r$2 = r.multipartReader(true); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
@@ -107580,7 +107648,7 @@ $packages["net/http"] = (function() {
|
|
|
107580
107648
|
_r$2 = new Header(r.Header).Get("Content-Type"); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
107581
107649
|
v = _r$2;
|
|
107582
107650
|
if (v === "") {
|
|
107583
|
-
$s = -1; return [ptrType$
|
|
107651
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
107584
107652
|
}
|
|
107585
107653
|
_r$3 = mime.ParseMediaType(v); /* */ $s = 2; case 2: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
107586
107654
|
_tuple = _r$3;
|
|
@@ -107588,13 +107656,13 @@ $packages["net/http"] = (function() {
|
|
|
107588
107656
|
params = _tuple[1];
|
|
107589
107657
|
err = _tuple[2];
|
|
107590
107658
|
if (!($interfaceIsEqual(err, $ifaceNil)) || !(d === "multipart/form-data" || allowMixed && d === "multipart/mixed")) {
|
|
107591
|
-
$s = -1; return [ptrType$
|
|
107659
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
107592
107660
|
}
|
|
107593
107661
|
_tuple$1 = (_entry = params[$String.keyFor("boundary")], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
107594
107662
|
boundary = _tuple$1[0];
|
|
107595
107663
|
ok = _tuple$1[1];
|
|
107596
107664
|
if (!ok) {
|
|
107597
|
-
$s = -1; return [ptrType$
|
|
107665
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrMissingBoundary];
|
|
107598
107666
|
}
|
|
107599
107667
|
$s = -1; return [multipart.NewReader(r.Body, boundary), $ifaceNil];
|
|
107600
107668
|
/* */ } return; } if ($f === undefined) { $f = { $blk: Request.ptr.prototype.multipartReader }; } $f._entry = _entry; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.allowMixed = allowMixed; $f.boundary = boundary; $f.d = d; $f.err = err; $f.ok = ok; $f.params = params; $f.r = r; $f.v = v; $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -108079,7 +108147,7 @@ $packages["net/http"] = (function() {
|
|
|
108079
108147
|
_r$2 = textprotoReaderPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
108080
108148
|
v = _r$2;
|
|
108081
108149
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
108082
|
-
tr = $assertType(v, ptrType$
|
|
108150
|
+
tr = $assertType(v, ptrType$90);
|
|
108083
108151
|
tr.R = br;
|
|
108084
108152
|
$s = -1; return tr;
|
|
108085
108153
|
}
|
|
@@ -108089,7 +108157,7 @@ $packages["net/http"] = (function() {
|
|
|
108089
108157
|
};
|
|
108090
108158
|
putTextprotoReader = function(r) {
|
|
108091
108159
|
var r;
|
|
108092
|
-
r.R = ptrType$
|
|
108160
|
+
r.R = ptrType$77.nil;
|
|
108093
108161
|
textprotoReaderPool.Put(r);
|
|
108094
108162
|
};
|
|
108095
108163
|
readRequest = function(b, deleteHostHeader) {
|
|
@@ -108333,7 +108401,7 @@ $packages["net/http"] = (function() {
|
|
|
108333
108401
|
/* if (ct === "application/x-www-form-urlencoded") { */ case 4:
|
|
108334
108402
|
reader = r.Body;
|
|
108335
108403
|
maxFormSize = new $Int64(2147483647, 4294967295);
|
|
108336
|
-
_tuple$1 = $assertType(r.Body, ptrType$
|
|
108404
|
+
_tuple$1 = $assertType(r.Body, ptrType$91, true);
|
|
108337
108405
|
ok = _tuple$1[1];
|
|
108338
108406
|
if (!ok) {
|
|
108339
108407
|
maxFormSize = new $Int64(0, 10485760);
|
|
@@ -108777,12 +108845,12 @@ $packages["net/http"] = (function() {
|
|
|
108777
108845
|
var _r$2, _r$3, _r$4, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tuple, buf, c, err, err$1, rwc, $s, $r;
|
|
108778
108846
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tmp$3 = $f._tmp$3; _tmp$4 = $f._tmp$4; _tmp$5 = $f._tmp$5; _tuple = $f._tuple; buf = $f.buf; c = $f.c; err = $f.err; err$1 = $f.err$1; rwc = $f.rwc; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
108779
108847
|
rwc = $ifaceNil;
|
|
108780
|
-
buf = ptrType$
|
|
108848
|
+
buf = ptrType$92.nil;
|
|
108781
108849
|
err = $ifaceNil;
|
|
108782
108850
|
c = this;
|
|
108783
108851
|
if (c.hijackedv) {
|
|
108784
108852
|
_tmp = $ifaceNil;
|
|
108785
|
-
_tmp$1 = ptrType$
|
|
108853
|
+
_tmp$1 = ptrType$92.nil;
|
|
108786
108854
|
_tmp$2 = $pkg.ErrHijacked;
|
|
108787
108855
|
rwc = _tmp;
|
|
108788
108856
|
buf = _tmp$1;
|
|
@@ -108805,7 +108873,7 @@ $packages["net/http"] = (function() {
|
|
|
108805
108873
|
/* */ $s = 7; continue;
|
|
108806
108874
|
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 6:
|
|
108807
108875
|
_tmp$3 = $ifaceNil;
|
|
108808
|
-
_tmp$4 = ptrType$
|
|
108876
|
+
_tmp$4 = ptrType$92.nil;
|
|
108809
108877
|
_r$4 = fmt.Errorf("unexpected Peek failure reading buffered byte: %v", new sliceType([err$1])); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
108810
108878
|
_tmp$5 = _r$4;
|
|
108811
108879
|
rwc = _tmp$3;
|
|
@@ -108967,17 +109035,17 @@ $packages["net/http"] = (function() {
|
|
|
108967
109035
|
$ptrType(atomicBool).prototype.isSet = function() {
|
|
108968
109036
|
var _ptr, b;
|
|
108969
109037
|
b = this;
|
|
108970
|
-
return !((atomic.LoadInt32(((_ptr = b, new ptrType$
|
|
109038
|
+
return !((atomic.LoadInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target)))) === 0));
|
|
108971
109039
|
};
|
|
108972
109040
|
$ptrType(atomicBool).prototype.setTrue = function() {
|
|
108973
109041
|
var _ptr, b;
|
|
108974
109042
|
b = this;
|
|
108975
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
109043
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 1);
|
|
108976
109044
|
};
|
|
108977
109045
|
$ptrType(atomicBool).prototype.setFalse = function() {
|
|
108978
109046
|
var _ptr, b;
|
|
108979
109047
|
b = this;
|
|
108980
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
109048
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 0);
|
|
108981
109049
|
};
|
|
108982
109050
|
response.ptr.prototype.declareTrailer = function(k) {
|
|
108983
109051
|
var _r$2, _r$3, k, w, $s, $r;
|
|
@@ -109084,7 +109152,7 @@ $packages["net/http"] = (function() {
|
|
|
109084
109152
|
var _r$2, c, rwc, srv, $s, $r;
|
|
109085
109153
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; c = $f.c; rwc = $f.rwc; srv = $f.srv; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109086
109154
|
srv = this;
|
|
109087
|
-
c = new conn.ptr(srv, $throwNilPointerError, rwc, "", ptrType$21.nil, $ifaceNil, ptrType$
|
|
109155
|
+
c = new conn.ptr(srv, $throwNilPointerError, rwc, "", ptrType$21.nil, $ifaceNil, ptrType$94.nil, ptrType$77.nil, ptrType$9.nil, "", new atomic.Value.ptr($ifaceNil), new structType$2.ptr(new $Uint64(0, 0)), new sync.Mutex.ptr(0, 0), false);
|
|
109088
109156
|
/* */ if (false) { $s = 1; continue; }
|
|
109089
109157
|
/* */ $s = 2; continue;
|
|
109090
109158
|
/* if (false) { */ case 1:
|
|
@@ -109100,7 +109168,7 @@ $packages["net/http"] = (function() {
|
|
|
109100
109168
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; cr = $f.cr; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109101
109169
|
cr = this;
|
|
109102
109170
|
$r = cr.mu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109103
|
-
if (cr.cond === ptrType$
|
|
109171
|
+
if (cr.cond === ptrType$73.nil) {
|
|
109104
109172
|
cr.cond = sync.NewCond(cr.mu);
|
|
109105
109173
|
}
|
|
109106
109174
|
$s = -1; return;
|
|
@@ -109224,11 +109292,11 @@ $packages["net/http"] = (function() {
|
|
|
109224
109292
|
var _tuple, cr, res, $s, $r;
|
|
109225
109293
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _tuple = $f._tuple; cr = $f.cr; res = $f.res; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109226
109294
|
cr = this;
|
|
109227
|
-
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$
|
|
109295
|
+
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$95, true);
|
|
109228
109296
|
res = _tuple[0];
|
|
109229
|
-
/* */ if (!(res === ptrType$
|
|
109297
|
+
/* */ if (!(res === ptrType$95.nil) && atomic.CompareAndSwapInt32((res.$ptr_didCloseNotify || (res.$ptr_didCloseNotify = new ptrType$93(function() { return this.$target.didCloseNotify; }, function($v) { this.$target.didCloseNotify = $v; }, res))), 0, 1)) { $s = 1; continue; }
|
|
109230
109298
|
/* */ $s = 2; continue;
|
|
109231
|
-
/* if (!(res === ptrType$
|
|
109299
|
+
/* if (!(res === ptrType$95.nil) && atomic.CompareAndSwapInt32((res.$ptr_didCloseNotify || (res.$ptr_didCloseNotify = new ptrType$93(function() { return this.$target.didCloseNotify; }, function($v) { this.$target.didCloseNotify = $v; }, res))), 0, 1)) { */ case 1:
|
|
109232
109300
|
$r = $send(res.closeNotifyCh, true); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109233
109301
|
/* } */ case 2:
|
|
109234
109302
|
$s = -1; return;
|
|
@@ -109321,7 +109389,7 @@ $packages["net/http"] = (function() {
|
|
|
109321
109389
|
} else if (_1 === (4096)) {
|
|
109322
109390
|
return bufioWriter4kPool;
|
|
109323
109391
|
}
|
|
109324
|
-
return ptrType$
|
|
109392
|
+
return ptrType$96.nil;
|
|
109325
109393
|
};
|
|
109326
109394
|
newBufioReader = function(r) {
|
|
109327
109395
|
var _r$2, br, r, v, $s, $r;
|
|
@@ -109329,7 +109397,7 @@ $packages["net/http"] = (function() {
|
|
|
109329
109397
|
_r$2 = bufioReaderPool.Get(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109330
109398
|
v = _r$2;
|
|
109331
109399
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
109332
|
-
br = $assertType(v, ptrType$
|
|
109400
|
+
br = $assertType(v, ptrType$77);
|
|
109333
109401
|
br.Reset(r);
|
|
109334
109402
|
$s = -1; return br;
|
|
109335
109403
|
}
|
|
@@ -109345,9 +109413,9 @@ $packages["net/http"] = (function() {
|
|
|
109345
109413
|
var _r$2, bw, pool, size, v, w, $s, $r;
|
|
109346
109414
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; bw = $f.bw; pool = $f.pool; size = $f.size; v = $f.v; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
109347
109415
|
pool = bufioWriterPool(size);
|
|
109348
|
-
/* */ if (!(pool === ptrType$
|
|
109416
|
+
/* */ if (!(pool === ptrType$96.nil)) { $s = 1; continue; }
|
|
109349
109417
|
/* */ $s = 2; continue;
|
|
109350
|
-
/* if (!(pool === ptrType$
|
|
109418
|
+
/* if (!(pool === ptrType$96.nil)) { */ case 1:
|
|
109351
109419
|
_r$2 = pool.Get(); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109352
109420
|
v = _r$2;
|
|
109353
109421
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
@@ -109363,7 +109431,7 @@ $packages["net/http"] = (function() {
|
|
|
109363
109431
|
var bw, pool;
|
|
109364
109432
|
bw.Reset($ifaceNil);
|
|
109365
109433
|
pool = bufioWriterPool(bw.Available());
|
|
109366
|
-
if (!(pool === ptrType$
|
|
109434
|
+
if (!(pool === ptrType$96.nil)) {
|
|
109367
109435
|
pool.Put(bw);
|
|
109368
109436
|
}
|
|
109369
109437
|
};
|
|
@@ -109461,14 +109529,14 @@ $packages["net/http"] = (function() {
|
|
|
109461
109529
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _entry = $f._entry; _entry$1 = $f._entry$1; _i = $f._i; _i$1 = $f._i$1; _keys = $f._keys; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _r$8 = $f._r$8; _r$9 = $f._r$9; _ref = $f._ref; _ref$1 = $f._ref$1; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$10 = $f._tmp$10; _tmp$11 = $f._tmp$11; _tmp$12 = $f._tmp$12; _tmp$13 = $f._tmp$13; _tmp$14 = $f._tmp$14; _tmp$15 = $f._tmp$15; _tmp$16 = $f._tmp$16; _tmp$17 = $f._tmp$17; _tmp$18 = $f._tmp$18; _tmp$19 = $f._tmp$19; _tmp$2 = $f._tmp$2; _tmp$3 = $f._tmp$3; _tmp$4 = $f._tmp$4; _tmp$5 = $f._tmp$5; _tmp$6 = $f._tmp$6; _tmp$7 = $f._tmp$7; _tmp$8 = $f._tmp$8; _tmp$9 = $f._tmp$9; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; _tuple$3 = $f._tuple$3; _tuple$4 = $f._tuple$4; body$1 = $f.body$1; c = $f.c; cancelCtx = $f.cancelCtx; ctx = $f.ctx; d = $f.d; d$1 = $f.d$1; d$2 = $f.d$2; err = $f.err; haveHost = $f.haveHost; hdrDeadline = $f.hdrDeadline; hosts = $f.hosts; isH2Upgrade = $f.isH2Upgrade; k = $f.k; ok = $f.ok; peek = $f.peek; req = $f.req; t0 = $f.t0; v = $f.v; vv = $f.vv; w = $f.w; wholeReqDeadline = $f.wholeReqDeadline; x$4 = $f.x$4; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
109462
109530
|
c = [c];
|
|
109463
109531
|
d = [d];
|
|
109464
|
-
w = ptrType$
|
|
109532
|
+
w = ptrType$95.nil;
|
|
109465
109533
|
err = $ifaceNil;
|
|
109466
109534
|
c[0] = this;
|
|
109467
109535
|
_r$2 = c[0].hijacked(); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
109468
109536
|
/* */ if (_r$2) { $s = 1; continue; }
|
|
109469
109537
|
/* */ $s = 2; continue;
|
|
109470
109538
|
/* if (_r$2) { */ case 1:
|
|
109471
|
-
_tmp = ptrType$
|
|
109539
|
+
_tmp = ptrType$95.nil;
|
|
109472
109540
|
_tmp$1 = $pkg.ErrHijacked;
|
|
109473
109541
|
w = _tmp;
|
|
109474
109542
|
err = _tmp$1;
|
|
@@ -109516,20 +109584,20 @@ $packages["net/http"] = (function() {
|
|
|
109516
109584
|
err = _tuple$1[1];
|
|
109517
109585
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
109518
109586
|
if (c[0].r.hitReadLimit()) {
|
|
109519
|
-
_tmp$2 = ptrType$
|
|
109587
|
+
_tmp$2 = ptrType$95.nil;
|
|
109520
109588
|
_tmp$3 = errTooLarge;
|
|
109521
109589
|
w = _tmp$2;
|
|
109522
109590
|
err = _tmp$3;
|
|
109523
109591
|
$s = -1; return [w, err];
|
|
109524
109592
|
}
|
|
109525
|
-
_tmp$4 = ptrType$
|
|
109593
|
+
_tmp$4 = ptrType$95.nil;
|
|
109526
109594
|
_tmp$5 = err;
|
|
109527
109595
|
w = _tmp$4;
|
|
109528
109596
|
err = _tmp$5;
|
|
109529
109597
|
$s = -1; return [w, err];
|
|
109530
109598
|
}
|
|
109531
109599
|
if (!http1ServerSupportsRequest(req)) {
|
|
109532
|
-
_tmp$6 = ptrType$
|
|
109600
|
+
_tmp$6 = ptrType$95.nil;
|
|
109533
109601
|
_tmp$7 = (x$4 = new statusError.ptr(505, "unsupported protocol version"), new x$4.constructor.elem(x$4));
|
|
109534
109602
|
w = _tmp$6;
|
|
109535
109603
|
err = _tmp$7;
|
|
@@ -109542,21 +109610,21 @@ $packages["net/http"] = (function() {
|
|
|
109542
109610
|
haveHost = _tuple$2[1];
|
|
109543
109611
|
isH2Upgrade = req.isH2Upgrade();
|
|
109544
109612
|
if (req.ProtoAtLeast(1, 1) && (!haveHost || (hosts.$length === 0)) && !isH2Upgrade && !(req.Method === "CONNECT")) {
|
|
109545
|
-
_tmp$8 = ptrType$
|
|
109613
|
+
_tmp$8 = ptrType$95.nil;
|
|
109546
109614
|
_tmp$9 = badRequestError("missing required Host header");
|
|
109547
109615
|
w = _tmp$8;
|
|
109548
109616
|
err = _tmp$9;
|
|
109549
109617
|
$s = -1; return [w, err];
|
|
109550
109618
|
}
|
|
109551
109619
|
if (hosts.$length > 1) {
|
|
109552
|
-
_tmp$10 = ptrType$
|
|
109620
|
+
_tmp$10 = ptrType$95.nil;
|
|
109553
109621
|
_tmp$11 = badRequestError("too many Host headers");
|
|
109554
109622
|
w = _tmp$10;
|
|
109555
109623
|
err = _tmp$11;
|
|
109556
109624
|
$s = -1; return [w, err];
|
|
109557
109625
|
}
|
|
109558
109626
|
if ((hosts.$length === 1) && !httpguts.ValidHostHeader((0 >= hosts.$length ? ($throwRuntimeError("index out of range"), undefined) : hosts.$array[hosts.$offset + 0]))) {
|
|
109559
|
-
_tmp$12 = ptrType$
|
|
109627
|
+
_tmp$12 = ptrType$95.nil;
|
|
109560
109628
|
_tmp$13 = badRequestError("malformed Host header");
|
|
109561
109629
|
w = _tmp$12;
|
|
109562
109630
|
err = _tmp$13;
|
|
@@ -109575,7 +109643,7 @@ $packages["net/http"] = (function() {
|
|
|
109575
109643
|
k = _entry$1.k;
|
|
109576
109644
|
vv = _entry$1.v;
|
|
109577
109645
|
if (!httpguts.ValidHeaderFieldName(k)) {
|
|
109578
|
-
_tmp$14 = ptrType$
|
|
109646
|
+
_tmp$14 = ptrType$95.nil;
|
|
109579
109647
|
_tmp$15 = badRequestError("invalid header name");
|
|
109580
109648
|
w = _tmp$14;
|
|
109581
109649
|
err = _tmp$15;
|
|
@@ -109587,7 +109655,7 @@ $packages["net/http"] = (function() {
|
|
|
109587
109655
|
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
109588
109656
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
109589
109657
|
if (!httpguts.ValidHeaderFieldValue(v)) {
|
|
109590
|
-
_tmp$16 = ptrType$
|
|
109658
|
+
_tmp$16 = ptrType$95.nil;
|
|
109591
109659
|
_tmp$17 = badRequestError("invalid header value");
|
|
109592
109660
|
w = _tmp$16;
|
|
109593
109661
|
err = _tmp$17;
|
|
@@ -109605,7 +109673,7 @@ $packages["net/http"] = (function() {
|
|
|
109605
109673
|
req.ctx = ctx;
|
|
109606
109674
|
req.RemoteAddr = c[0].remoteAddr;
|
|
109607
109675
|
req.TLS = c[0].tlsState;
|
|
109608
|
-
_tuple$4 = $assertType(req.Body, ptrType$
|
|
109676
|
+
_tuple$4 = $assertType(req.Body, ptrType$97, true);
|
|
109609
109677
|
body$1 = _tuple$4[0];
|
|
109610
109678
|
ok = _tuple$4[1];
|
|
109611
109679
|
if (ok) {
|
|
@@ -109617,7 +109685,7 @@ $packages["net/http"] = (function() {
|
|
|
109617
109685
|
_r$8 = c[0].rwc.SetReadDeadline($clone(wholeReqDeadline, time.Time)); /* */ $s = 15; case 15: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
109618
109686
|
_r$8;
|
|
109619
109687
|
/* } */ case 14:
|
|
109620
|
-
w = new response.ptr(c[0], req, req.Body, cancelCtx, false, false, req.wantsHttp10KeepAlive(), req.wantsClose(), 0, new sync.Mutex.ptr(0, 0), ptrType$9.nil, new chunkWriter.ptr(ptrType$
|
|
109688
|
+
w = new response.ptr(c[0], req, req.Body, cancelCtx, false, false, req.wantsHttp10KeepAlive(), req.wantsClose(), 0, new sync.Mutex.ptr(0, 0), ptrType$9.nil, new chunkWriter.ptr(ptrType$95.nil, false, false, false), {}, false, new $Int64(0, 0), new $Int64(-1, 4294967295), 0, false, false, sliceType$2.nil, 0, arrayType$1.zero(), arrayType$7.zero(), arrayType$8.zero(), new $Chan($Bool, 1), 0);
|
|
109621
109689
|
if (isH2Upgrade) {
|
|
109622
109690
|
w.closeAfterReply = true;
|
|
109623
109691
|
}
|
|
@@ -109669,7 +109737,7 @@ $packages["net/http"] = (function() {
|
|
|
109669
109737
|
pc = $makeSlice(sliceType$27, 16);
|
|
109670
109738
|
n = runtime.Callers(1, pc);
|
|
109671
109739
|
frames = runtime.CallersFrames($subslice(pc, 0, n));
|
|
109672
|
-
frame = new runtime.Frame.ptr(0, ptrType$
|
|
109740
|
+
frame = new runtime.Frame.ptr(0, ptrType$99.nil, "", "", 0, 0);
|
|
109673
109741
|
while (true) {
|
|
109674
109742
|
_tuple = frames.Next();
|
|
109675
109743
|
frame$1 = $clone(_tuple[0], runtime.Frame);
|
|
@@ -109874,7 +109942,7 @@ $packages["net/http"] = (function() {
|
|
|
109874
109942
|
if (new Header(header[0]).get("Connection") === "close" || !keepAlivesEnabled) {
|
|
109875
109943
|
w.closeAfterReply = true;
|
|
109876
109944
|
}
|
|
109877
|
-
_tuple$1 = $assertType(w.req.Body, ptrType$
|
|
109945
|
+
_tuple$1 = $assertType(w.req.Body, ptrType$100, true);
|
|
109878
109946
|
ecr = _tuple$1[0];
|
|
109879
109947
|
ok = _tuple$1[1];
|
|
109880
109948
|
if (ok && !(ecr.$ptr_sawEOF || (ecr.$ptr_sawEOF = new ptrType$24(function() { return this.$target.sawEOF; }, function($v) { this.$target.sawEOF = $v; }, ecr))).isSet()) {
|
|
@@ -109888,16 +109956,16 @@ $packages["net/http"] = (function() {
|
|
|
109888
109956
|
discard = _tmp;
|
|
109889
109957
|
tooBig = _tmp$1;
|
|
109890
109958
|
_ref$2 = w.req.Body;
|
|
109891
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
109892
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
109959
|
+
/* */ if ($assertType(_ref$2, ptrType$100, true)[1]) { $s = 6; continue; }
|
|
109960
|
+
/* */ if ($assertType(_ref$2, ptrType$97, true)[1]) { $s = 7; continue; }
|
|
109893
109961
|
/* */ $s = 8; continue;
|
|
109894
|
-
/* if ($assertType(_ref$2, ptrType$
|
|
109962
|
+
/* if ($assertType(_ref$2, ptrType$100, true)[1]) { */ case 6:
|
|
109895
109963
|
bdy = _ref$2.$val;
|
|
109896
109964
|
if (bdy.resp.wroteContinue) {
|
|
109897
109965
|
discard = true;
|
|
109898
109966
|
}
|
|
109899
109967
|
$s = 9; continue;
|
|
109900
|
-
/* } else if ($assertType(_ref$2, ptrType$
|
|
109968
|
+
/* } else if ($assertType(_ref$2, ptrType$97, true)[1]) { */ case 7:
|
|
109901
109969
|
bdy$1 = _ref$2.$val;
|
|
109902
109970
|
$r = bdy$1.mu.Lock(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109903
109971
|
if (bdy$1.closed) {
|
|
@@ -109990,27 +110058,25 @@ $packages["net/http"] = (function() {
|
|
|
109990
110058
|
$r = delHeader("Content-Length"); /* */ $s = 42; case 42: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
109991
110059
|
hasCL = false;
|
|
109992
110060
|
/* } */ case 40:
|
|
109993
|
-
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code)) { $s = 43; continue; }
|
|
109994
|
-
/* */ if (
|
|
109995
|
-
/* */ if (
|
|
109996
|
-
/* */
|
|
109997
|
-
/*
|
|
109998
|
-
|
|
109999
|
-
$s =
|
|
110000
|
-
/* } else if (
|
|
110061
|
+
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { $s = 43; continue; }
|
|
110062
|
+
/* */ if (hasCL) { $s = 44; continue; }
|
|
110063
|
+
/* */ if (w.req.ProtoAtLeast(1, 1)) { $s = 45; continue; }
|
|
110064
|
+
/* */ $s = 46; continue;
|
|
110065
|
+
/* if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { */ case 43:
|
|
110066
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 48; case 48: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110067
|
+
$s = 47; continue;
|
|
110068
|
+
/* } else if (hasCL) { */ case 44:
|
|
110001
110069
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 49; case 49: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110002
|
-
$s =
|
|
110003
|
-
/* } else if (
|
|
110004
|
-
|
|
110005
|
-
$s =
|
|
110006
|
-
|
|
110007
|
-
/* */ if (hasTE && te === "identity") { $s = 51; continue; }
|
|
110008
|
-
/* */ $s = 52; continue;
|
|
110009
|
-
/* if (hasTE && te === "identity") { */ case 51:
|
|
110070
|
+
$s = 47; continue;
|
|
110071
|
+
/* } else if (w.req.ProtoAtLeast(1, 1)) { */ case 45:
|
|
110072
|
+
/* */ if (hasTE && te === "identity") { $s = 50; continue; }
|
|
110073
|
+
/* */ $s = 51; continue;
|
|
110074
|
+
/* if (hasTE && te === "identity") { */ case 50:
|
|
110010
110075
|
cw.chunking = false;
|
|
110011
110076
|
w.closeAfterReply = true;
|
|
110012
|
-
$s = 53;
|
|
110013
|
-
|
|
110077
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 53; case 53: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110078
|
+
$s = 52; continue;
|
|
110079
|
+
/* } else { */ case 51:
|
|
110014
110080
|
cw.chunking = true;
|
|
110015
110081
|
setHeader.transferEncoding = "chunked";
|
|
110016
110082
|
/* */ if (hasTE && te === "chunked") { $s = 54; continue; }
|
|
@@ -110018,12 +110084,12 @@ $packages["net/http"] = (function() {
|
|
|
110018
110084
|
/* if (hasTE && te === "chunked") { */ case 54:
|
|
110019
110085
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 56; case 56: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110020
110086
|
/* } */ case 55:
|
|
110021
|
-
/* } */ case
|
|
110022
|
-
$s =
|
|
110023
|
-
/* } else { */ case
|
|
110087
|
+
/* } */ case 52:
|
|
110088
|
+
$s = 47; continue;
|
|
110089
|
+
/* } else { */ case 46:
|
|
110024
110090
|
w.closeAfterReply = true;
|
|
110025
110091
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 57; case 57: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110026
|
-
/* } */ case
|
|
110092
|
+
/* } */ case 47:
|
|
110027
110093
|
/* */ if (cw.chunking) { $s = 58; continue; }
|
|
110028
110094
|
/* */ $s = 59; continue;
|
|
110029
110095
|
/* if (cw.chunking) { */ case 58:
|
|
@@ -110286,7 +110352,7 @@ $packages["net/http"] = (function() {
|
|
|
110286
110352
|
var _r$2, _tuple, _v, body$1, ok, w, $s, $r;
|
|
110287
110353
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tuple = $f._tuple; _v = $f._v; body$1 = $f.body$1; ok = $f.ok; w = $f.w; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110288
110354
|
w = this;
|
|
110289
|
-
_tuple = $assertType(w.req.Body, ptrType$
|
|
110355
|
+
_tuple = $assertType(w.req.Body, ptrType$97, true);
|
|
110290
110356
|
body$1 = _tuple[0];
|
|
110291
110357
|
ok = _tuple[1];
|
|
110292
110358
|
if (!(ok)) { _v = false; $s = 1; continue s; }
|
|
@@ -110316,9 +110382,9 @@ $packages["net/http"] = (function() {
|
|
|
110316
110382
|
var _r$2, c, $s, $r;
|
|
110317
110383
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; c = $f.c; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110318
110384
|
c = this;
|
|
110319
|
-
if (!(c.bufr === ptrType$
|
|
110385
|
+
if (!(c.bufr === ptrType$77.nil)) {
|
|
110320
110386
|
putBufioReader(c.bufr);
|
|
110321
|
-
c.bufr = ptrType$
|
|
110387
|
+
c.bufr = ptrType$77.nil;
|
|
110322
110388
|
}
|
|
110323
110389
|
/* */ if (!(c.bufw === ptrType$9.nil)) { $s = 1; continue; }
|
|
110324
110390
|
/* */ $s = 2; continue;
|
|
@@ -110390,7 +110456,7 @@ $packages["net/http"] = (function() {
|
|
|
110390
110456
|
$panic(new $String("internal error"));
|
|
110391
110457
|
}
|
|
110392
110458
|
packedState = (x$4 = ((x$5 = $shiftLeft64($clone(time.Now(), time.Time).Unix(), 8), new $Uint64(x$5.$high, x$5.$low))), x$6 = (new $Uint64(0, state)), new $Uint64(x$4.$high | x$6.$high, (x$4.$low | x$6.$low) >>> 0));
|
|
110393
|
-
atomic.StoreUint64((x$7 = c.curState, (x$7.$ptr_atomic || (x$7.$ptr_atomic = new ptrType$
|
|
110459
|
+
atomic.StoreUint64((x$7 = c.curState, (x$7.$ptr_atomic || (x$7.$ptr_atomic = new ptrType$101(function() { return this.$target.atomic; }, function($v) { this.$target.atomic = $v; }, x$7)))), packedState);
|
|
110394
110460
|
if (!runHook) {
|
|
110395
110461
|
$s = -1; return;
|
|
110396
110462
|
}
|
|
@@ -110409,7 +110475,7 @@ $packages["net/http"] = (function() {
|
|
|
110409
110475
|
state = 0;
|
|
110410
110476
|
unixSec = new $Int64(0, 0);
|
|
110411
110477
|
c = this;
|
|
110412
|
-
packedState = atomic.LoadUint64((x$4 = c.curState, (x$4.$ptr_atomic || (x$4.$ptr_atomic = new ptrType$
|
|
110478
|
+
packedState = atomic.LoadUint64((x$4 = c.curState, (x$4.$ptr_atomic || (x$4.$ptr_atomic = new ptrType$101(function() { return this.$target.atomic; }, function($v) { this.$target.atomic = $v; }, x$4)))));
|
|
110413
110479
|
_tmp = ((new $Uint64(packedState.$high & 0, (packedState.$low & 255) >>> 0).$low >> 0));
|
|
110414
110480
|
_tmp$1 = ((x$5 = $shiftRightUint64(packedState, 8), new $Int64(x$5.$high, x$5.$low)));
|
|
110415
110481
|
state = _tmp;
|
|
@@ -110488,7 +110554,7 @@ $packages["net/http"] = (function() {
|
|
|
110488
110554
|
$s = -1; return;
|
|
110489
110555
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $b }; } $f._r$6 = _r$6; $f.buf = buf; $f.err = err; $f.$s = $s; $f.$r = $r; return $f;
|
|
110490
110556
|
}; })(c), []]);
|
|
110491
|
-
_tuple = $assertType(c[0].rwc, ptrType$
|
|
110557
|
+
_tuple = $assertType(c[0].rwc, ptrType$76, true);
|
|
110492
110558
|
tlsConn = _tuple[0];
|
|
110493
110559
|
ok = _tuple[1];
|
|
110494
110560
|
/* */ if (ok) { $s = 5; continue; }
|
|
@@ -110555,7 +110621,7 @@ $packages["net/http"] = (function() {
|
|
|
110555
110621
|
cancelCtx = _tuple$2[1];
|
|
110556
110622
|
c[0].cancelCtx = cancelCtx;
|
|
110557
110623
|
$deferred.push([cancelCtx, []]);
|
|
110558
|
-
c[0].r = new connReader.ptr(c[0], new sync.Mutex.ptr(0, 0), false, arrayType$6.zero(), ptrType$
|
|
110624
|
+
c[0].r = new connReader.ptr(c[0], new sync.Mutex.ptr(0, 0), false, arrayType$6.zero(), ptrType$73.nil, false, false, new $Int64(0, 0));
|
|
110559
110625
|
_r$14 = newBufioReader(c[0].r); /* */ $s = 30; case 30: if($c) { $c = false; _r$14 = _r$14.$blk(); } if (_r$14 && _r$14.$blk !== undefined) { break s; }
|
|
110560
110626
|
c[0].bufr = _r$14;
|
|
110561
110627
|
_r$15 = newBufioWriterSize((x$4 = new checkConnErrorWriter.ptr(c[0]), new x$4.constructor.elem(x$4)), 4096); /* */ $s = 31; case 31: if($c) { $c = false; _r$15 = _r$15.$blk(); } if (_r$15 && _r$15.$blk !== undefined) { break s; }
|
|
@@ -110656,7 +110722,7 @@ $packages["net/http"] = (function() {
|
|
|
110656
110722
|
$s = -1; return;
|
|
110657
110723
|
/* } */ case 71:
|
|
110658
110724
|
$r = c[0].setState(c[0].rwc, 2, true); /* */ $s = 78; case 78: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110659
|
-
c[0].curReq.Store((ptrType$
|
|
110725
|
+
c[0].curReq.Store((ptrType$95.nil));
|
|
110660
110726
|
if (!w.conn.server.doKeepAlives()) {
|
|
110661
110727
|
$s = -1; return;
|
|
110662
110728
|
}
|
|
@@ -110695,7 +110761,7 @@ $packages["net/http"] = (function() {
|
|
|
110695
110761
|
var _r$2, _tmp, _tmp$1, _tmp$2, _tuple, buf, c, err, rwc, w, $s, $deferred, $r;
|
|
110696
110762
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$2 = $f._tmp$2; _tuple = $f._tuple; buf = $f.buf; c = $f.c; err = $f.err; rwc = $f.rwc; w = $f.w; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
110697
110763
|
rwc = $ifaceNil;
|
|
110698
|
-
buf = ptrType$
|
|
110764
|
+
buf = ptrType$92.nil;
|
|
110699
110765
|
err = $ifaceNil;
|
|
110700
110766
|
w = this;
|
|
110701
110767
|
if ((w.$ptr_handlerDone || (w.$ptr_handlerDone = new ptrType$24(function() { return this.$target.handlerDone; }, function($v) { this.$target.handlerDone = $v; }, w))).isSet()) {
|
|
@@ -110741,14 +110807,14 @@ $packages["net/http"] = (function() {
|
|
|
110741
110807
|
var _r$2, _ref, fn, rc, v, v$1, v$2, $s, $r;
|
|
110742
110808
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _ref = $f._ref; fn = $f.fn; rc = $f.rc; v = $f.v; v$1 = $f.v$1; v$2 = $f.v$2; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
110743
110809
|
_ref = rc;
|
|
110744
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110745
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110810
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
110811
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
110746
110812
|
/* */ $s = 3; continue;
|
|
110747
|
-
/* if ($assertType(_ref, ptrType$
|
|
110813
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
110748
110814
|
v = _ref.$val;
|
|
110749
110815
|
$r = registerOnHitEOF(v.readCloser, fn); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110750
110816
|
$s = 4; continue;
|
|
110751
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
110817
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
110752
110818
|
v$1 = _ref.$val;
|
|
110753
110819
|
$r = v$1.registerOnHitEOF(fn); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
110754
110820
|
$s = 4; continue;
|
|
@@ -110767,14 +110833,14 @@ $packages["net/http"] = (function() {
|
|
|
110767
110833
|
$s = -1; return false;
|
|
110768
110834
|
}
|
|
110769
110835
|
_ref = rc;
|
|
110770
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110771
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
110836
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
110837
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
110772
110838
|
/* */ $s = 3; continue;
|
|
110773
|
-
/* if ($assertType(_ref, ptrType$
|
|
110839
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
110774
110840
|
v = _ref.$val;
|
|
110775
110841
|
_r$2 = requestBodyRemains(v.readCloser); /* */ $s = 5; case 5: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
110776
110842
|
$s = -1; return _r$2;
|
|
110777
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
110843
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
110778
110844
|
v$1 = _ref.$val;
|
|
110779
110845
|
_r$3 = v$1.bodyRemains(); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
110780
110846
|
$s = -1; return _r$3;
|
|
@@ -111256,7 +111322,7 @@ $packages["net/http"] = (function() {
|
|
|
111256
111322
|
c = _entry.k;
|
|
111257
111323
|
_r$3 = c.rwc.Close(); /* */ $s = 5; case 5: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
111258
111324
|
_r$3;
|
|
111259
|
-
delete srv.activeConn[ptrType$
|
|
111325
|
+
delete srv.activeConn[ptrType$98.keyFor(c)];
|
|
111260
111326
|
_i++;
|
|
111261
111327
|
/* } */ $s = 3; continue; case 4:
|
|
111262
111328
|
$s = -1; return err;
|
|
@@ -111382,7 +111448,7 @@ $packages["net/http"] = (function() {
|
|
|
111382
111448
|
/* } */ case 5:
|
|
111383
111449
|
_r$2 = c.rwc.Close(); /* */ $s = 6; case 6: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
111384
111450
|
_r$2;
|
|
111385
|
-
delete s.activeConn[ptrType$
|
|
111451
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
111386
111452
|
_i++;
|
|
111387
111453
|
/* } */ $s = 2; continue; case 3:
|
|
111388
111454
|
$s = -1; return quiescent;
|
|
@@ -111636,9 +111702,9 @@ $packages["net/http"] = (function() {
|
|
|
111636
111702
|
s.activeConn = {};
|
|
111637
111703
|
}
|
|
111638
111704
|
if (add) {
|
|
111639
|
-
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$
|
|
111705
|
+
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$98.keyFor(_key)] = { k: _key, v: new structType.ptr() };
|
|
111640
111706
|
} else {
|
|
111641
|
-
delete s.activeConn[ptrType$
|
|
111707
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
111642
111708
|
}
|
|
111643
111709
|
$s = -1; return;
|
|
111644
111710
|
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: Server.ptr.prototype.trackConn }; } $f._key = _key; $f.add = add; $f.c = c; $f.s = s; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
@@ -111665,7 +111731,7 @@ $packages["net/http"] = (function() {
|
|
|
111665
111731
|
Server.ptr.prototype.doKeepAlives = function() {
|
|
111666
111732
|
var s;
|
|
111667
111733
|
s = this;
|
|
111668
|
-
return (atomic.LoadInt32((s.$ptr_disableKeepAlives || (s.$ptr_disableKeepAlives = new ptrType$
|
|
111734
|
+
return (atomic.LoadInt32((s.$ptr_disableKeepAlives || (s.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, s)))) === 0) && !s.shuttingDown();
|
|
111669
111735
|
};
|
|
111670
111736
|
Server.prototype.doKeepAlives = function() { return this.$val.doKeepAlives(); };
|
|
111671
111737
|
Server.ptr.prototype.shuttingDown = function() {
|
|
@@ -111679,10 +111745,10 @@ $packages["net/http"] = (function() {
|
|
|
111679
111745
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; srv = $f.srv; v = $f.v; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
111680
111746
|
srv = this;
|
|
111681
111747
|
if (v) {
|
|
111682
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
111748
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 0);
|
|
111683
111749
|
$s = -1; return;
|
|
111684
111750
|
}
|
|
111685
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
111751
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 1);
|
|
111686
111752
|
_r$2 = srv.closeIdleConns(); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
111687
111753
|
_r$2;
|
|
111688
111754
|
$s = -1; return;
|
|
@@ -111777,7 +111843,7 @@ $packages["net/http"] = (function() {
|
|
|
111777
111843
|
/* */ $s = 7; continue;
|
|
111778
111844
|
/* if (srv.TLSNextProto === false) { */ case 6:
|
|
111779
111845
|
conf = new http2Server.ptr(0, 0, 0, false, new time.Duration(0, 0), 0, 0, (function() {
|
|
111780
|
-
return http2NewPriorityWriteScheduler(ptrType$
|
|
111846
|
+
return http2NewPriorityWriteScheduler(ptrType$82.nil);
|
|
111781
111847
|
}), ptrType$50.nil);
|
|
111782
111848
|
_r$4 = http2ConfigureServer(srv, conf); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
111783
111849
|
srv.nextProtoErr = _r$4;
|
|
@@ -112734,9 +112800,9 @@ $packages["net/http"] = (function() {
|
|
|
112734
112800
|
} else if ((realLength.$high === 0 && realLength.$low === 0)) {
|
|
112735
112801
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
112736
112802
|
} else if ((realLength.$high > 0 || (realLength.$high === 0 && realLength.$low > 0))) {
|
|
112737
|
-
t.Body = new body.ptr(io.LimitReader(r, realLength), $ifaceNil, ptrType$
|
|
112803
|
+
t.Body = new body.ptr(io.LimitReader(r, realLength), $ifaceNil, ptrType$77.nil, t.Close, false, new sync.Mutex.ptr(0, 0), false, false, false, $throwNilPointerError);
|
|
112738
112804
|
} else if (t.Close) {
|
|
112739
|
-
t.Body = new body.ptr(r, $ifaceNil, ptrType$
|
|
112805
|
+
t.Body = new body.ptr(r, $ifaceNil, ptrType$77.nil, t.Close, false, new sync.Mutex.ptr(0, 0), false, false, false, $throwNilPointerError);
|
|
112740
112806
|
} else {
|
|
112741
112807
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
112742
112808
|
}
|
|
@@ -113109,10 +113175,10 @@ $packages["net/http"] = (function() {
|
|
|
113109
113175
|
_ref = b.hdr;
|
|
113110
113176
|
if ($assertType(_ref, ptrType$6, true)[1]) {
|
|
113111
113177
|
rr = _ref.$val;
|
|
113112
|
-
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$
|
|
113178
|
+
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$78(function() { return this.$target.Trailer; }, function($v) { this.$target.Trailer = $v; }, rr))), (hdr));
|
|
113113
113179
|
} else if ($assertType(_ref, ptrType$18, true)[1]) {
|
|
113114
113180
|
rr$1 = _ref.$val;
|
|
113115
|
-
mergeSetHeader((rr$1.$ptr_Trailer || (rr$1.$ptr_Trailer = new ptrType$
|
|
113181
|
+
mergeSetHeader((rr$1.$ptr_Trailer || (rr$1.$ptr_Trailer = new ptrType$78(function() { return this.$target.Trailer; }, function($v) { this.$target.Trailer = $v; }, rr$1))), (hdr));
|
|
113116
113182
|
}
|
|
113117
113183
|
$s = -1; return $ifaceNil;
|
|
113118
113184
|
/* */ } return; } if ($f === undefined) { $f = { $blk: body.ptr.prototype.readTrailer }; } $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._ref = _ref; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.b = b; $f.buf = buf; $f.err = err; $f.hdr = hdr; $f.rr = rr; $f.rr$1 = rr$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -113301,7 +113367,7 @@ $packages["net/http"] = (function() {
|
|
|
113301
113367
|
var _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _ref, _tuple, ok, r, r$1, $s, $r;
|
|
113302
113368
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _ref = $f._ref; _tuple = $f._tuple; ok = $f.ok; r = $f.r; r$1 = $f.r$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
113303
113369
|
_ref = r;
|
|
113304
|
-
if ($assertType(_ref, ptrType$
|
|
113370
|
+
if ($assertType(_ref, ptrType$88, true)[1] || $assertType(_ref, ptrType$38, true)[1] || $assertType(_ref, ptrType$89, true)[1]) {
|
|
113305
113371
|
$s = -1; return true;
|
|
113306
113372
|
}
|
|
113307
113373
|
_r$2 = reflect.TypeOf(r); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
@@ -113419,7 +113485,7 @@ $packages["net/http"] = (function() {
|
|
|
113419
113485
|
ptrType$69.methods = [{prop: "Init", name: "Init", pkg: "", typ: $funcType([], [], false)}];
|
|
113420
113486
|
ptrType$56.methods = [{prop: "Available", name: "Available", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Flush", name: "Flush", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113421
113487
|
ptrType$71.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Keys", name: "Keys", pkg: "", typ: $funcType([Header], [sliceType$2], false)}, {prop: "SortStrings", name: "SortStrings", pkg: "", typ: $funcType([sliceType$2], [], false)}];
|
|
113422
|
-
ptrType$68.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "CloseWithError", name: "CloseWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "BreakWithError", name: "BreakWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "closeWithErrorAndCode", name: "closeWithErrorAndCode", pkg: "net/http", typ: $funcType([$error, funcType], [], false)}, {prop: "closeWithError", name: "closeWithError", pkg: "net/http", typ: $funcType([ptrType$49, $error, funcType], [], false)}, {prop: "closeDoneLocked", name: "closeDoneLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Err", name: "Err", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Done", name: "Done", pkg: "", typ: $funcType([], [chanType$3], false)}];
|
|
113488
|
+
ptrType$68.methods = [{prop: "setBuffer", name: "setBuffer", pkg: "net/http", typ: $funcType([http2pipeBuffer], [], false)}, {prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "CloseWithError", name: "CloseWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "BreakWithError", name: "BreakWithError", pkg: "", typ: $funcType([$error], [], false)}, {prop: "closeWithErrorAndCode", name: "closeWithErrorAndCode", pkg: "net/http", typ: $funcType([$error, funcType], [], false)}, {prop: "closeWithError", name: "closeWithError", pkg: "net/http", typ: $funcType([ptrType$49, $error, funcType], [], false)}, {prop: "closeDoneLocked", name: "closeDoneLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Err", name: "Err", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Done", name: "Done", pkg: "", typ: $funcType([], [chanType$3], false)}];
|
|
113423
113489
|
ptrType$52.methods = [{prop: "initialConnRecvWindowSize", name: "initialConnRecvWindowSize", pkg: "net/http", typ: $funcType([], [$Int32], false)}, {prop: "initialStreamRecvWindowSize", name: "initialStreamRecvWindowSize", pkg: "net/http", typ: $funcType([], [$Int32], false)}, {prop: "maxReadFrameSize", name: "maxReadFrameSize", pkg: "net/http", typ: $funcType([], [$Uint32], false)}, {prop: "maxConcurrentStreams", name: "maxConcurrentStreams", pkg: "net/http", typ: $funcType([], [$Uint32], false)}, {prop: "maxQueuedControlFrames", name: "maxQueuedControlFrames", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "ServeConn", name: "ServeConn", pkg: "", typ: $funcType([net.Conn, ptrType$54], [], false)}];
|
|
113424
113490
|
ptrType$50.methods = [{prop: "registerConn", name: "registerConn", pkg: "net/http", typ: $funcType([ptrType$8], [], false)}, {prop: "unregisterConn", name: "unregisterConn", pkg: "net/http", typ: $funcType([ptrType$8], [], false)}, {prop: "startGracefulShutdown", name: "startGracefulShutdown", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113425
113491
|
ptrType$54.methods = [{prop: "context", name: "context", pkg: "net/http", typ: $funcType([], [context.Context], false)}, {prop: "baseConfig", name: "baseConfig", pkg: "net/http", typ: $funcType([], [ptrType$51], false)}, {prop: "handler", name: "handler", pkg: "net/http", typ: $funcType([], [Handler], false)}];
|
|
@@ -113442,33 +113508,33 @@ $packages["net/http"] = (function() {
|
|
|
113442
113508
|
http2writeWindowUpdate.methods = [{prop: "staysWithinBuffer", name: "staysWithinBuffer", pkg: "net/http", typ: $funcType([$Int], [$Bool], false)}, {prop: "writeFrame", name: "writeFrame", pkg: "net/http", typ: $funcType([http2writeContext], [$error], false)}];
|
|
113443
113509
|
http2FrameWriteRequest.methods = [{prop: "StreamID", name: "StreamID", pkg: "", typ: $funcType([], [$Uint32], false)}, {prop: "isControl", name: "isControl", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "DataSize", name: "DataSize", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Consume", name: "Consume", pkg: "", typ: $funcType([$Int32], [http2FrameWriteRequest, http2FrameWriteRequest, $Int], false)}, {prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113444
113510
|
ptrType$124.methods = [{prop: "replyToWriter", name: "replyToWriter", pkg: "net/http", typ: $funcType([$error], [], false)}];
|
|
113445
|
-
ptrType$
|
|
113446
|
-
ptrType$
|
|
113447
|
-
ptrType$
|
|
113511
|
+
ptrType$81.methods = [{prop: "empty", name: "empty", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "push", name: "push", pkg: "net/http", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "shift", name: "shift", pkg: "net/http", typ: $funcType([], [http2FrameWriteRequest], false)}, {prop: "consume", name: "consume", pkg: "net/http", typ: $funcType([$Int32], [http2FrameWriteRequest, $Bool], false)}];
|
|
113512
|
+
ptrType$84.methods = [{prop: "put", name: "put", pkg: "net/http", typ: $funcType([ptrType$81], [], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([], [ptrType$81], false)}];
|
|
113513
|
+
ptrType$83.methods = [{prop: "setParent", name: "setParent", pkg: "net/http", typ: $funcType([ptrType$83], [], false)}, {prop: "addBytes", name: "addBytes", pkg: "net/http", typ: $funcType([$Int64], [], false)}, {prop: "walkReadyInOrder", name: "walkReadyInOrder", pkg: "net/http", typ: $funcType([$Bool, ptrType$85, funcType$13], [$Bool], false)}];
|
|
113448
113514
|
http2sortPriorityNodeSiblings.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}];
|
|
113449
|
-
ptrType$125.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}, {prop: "addClosedOrIdleNode", name: "addClosedOrIdleNode", pkg: "net/http", typ: $funcType([ptrType$
|
|
113515
|
+
ptrType$125.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}, {prop: "addClosedOrIdleNode", name: "addClosedOrIdleNode", pkg: "net/http", typ: $funcType([ptrType$85, $Int, ptrType$83], [], false)}, {prop: "removeNode", name: "removeNode", pkg: "net/http", typ: $funcType([ptrType$83], [], false)}];
|
|
113450
113516
|
ptrType$126.methods = [{prop: "OpenStream", name: "OpenStream", pkg: "", typ: $funcType([$Uint32, http2OpenStreamOptions], [], false)}, {prop: "CloseStream", name: "CloseStream", pkg: "", typ: $funcType([$Uint32], [], false)}, {prop: "AdjustStream", name: "AdjustStream", pkg: "", typ: $funcType([$Uint32, http2PriorityParam], [], false)}, {prop: "Push", name: "Push", pkg: "", typ: $funcType([http2FrameWriteRequest], [], false)}, {prop: "Pop", name: "Pop", pkg: "", typ: $funcType([], [http2FrameWriteRequest, $Bool], false)}];
|
|
113451
|
-
Header.methods = [{prop: "Add", name: "Add", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Get", name: "Get", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "Values", name: "Values", pkg: "", typ: $funcType([$String], [sliceType$2], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([$String], [$String], false)}, {prop: "has", name: "has", pkg: "net/http", typ: $funcType([$String], [$Bool], false)}, {prop: "Del", name: "Del", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([], [Header], false)}, {prop: "sortedKeyValues", name: "sortedKeyValues", pkg: "net/http", typ: $funcType([mapType$12], [sliceType$5, ptrType$
|
|
113517
|
+
Header.methods = [{prop: "Add", name: "Add", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "Get", name: "Get", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "Values", name: "Values", pkg: "", typ: $funcType([$String], [sliceType$2], false)}, {prop: "get", name: "get", pkg: "net/http", typ: $funcType([$String], [$String], false)}, {prop: "has", name: "has", pkg: "net/http", typ: $funcType([$String], [$Bool], false)}, {prop: "Del", name: "Del", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([], [Header], false)}, {prop: "sortedKeyValues", name: "sortedKeyValues", pkg: "net/http", typ: $funcType([mapType$12], [sliceType$5, ptrType$86], false)}, {prop: "WriteSubset", name: "WriteSubset", pkg: "", typ: $funcType([io.Writer, mapType$12], [$error], false)}, {prop: "writeSubset", name: "writeSubset", pkg: "net/http", typ: $funcType([io.Writer, mapType$12, ptrType$48], [$error], false)}];
|
|
113452
113518
|
stringWriter.methods = [{prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}];
|
|
113453
|
-
ptrType$
|
|
113519
|
+
ptrType$86.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}, {prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}];
|
|
113454
113520
|
ptrType$127.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113455
113521
|
noBody.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "WriteTo", name: "WriteTo", pkg: "", typ: $funcType([io.Writer], [$Int64, $error], false)}];
|
|
113456
113522
|
ptrType$128.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113457
|
-
ptrType$6.methods = [{prop: "Context", name: "Context", pkg: "", typ: $funcType([], [context.Context], false)}, {prop: "WithContext", name: "WithContext", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "UserAgent", name: "UserAgent", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Cookie", name: "Cookie", pkg: "", typ: $funcType([$String], [ptrType$26, $error], false)}, {prop: "AddCookie", name: "AddCookie", pkg: "", typ: $funcType([ptrType$26], [], false)}, {prop: "Referer", name: "Referer", pkg: "", typ: $funcType([], [$String], false)}, {prop: "MultipartReader", name: "MultipartReader", pkg: "", typ: $funcType([], [ptrType$
|
|
113458
|
-
ptrType$
|
|
113523
|
+
ptrType$6.methods = [{prop: "Context", name: "Context", pkg: "", typ: $funcType([], [context.Context], false)}, {prop: "WithContext", name: "WithContext", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "Clone", name: "Clone", pkg: "", typ: $funcType([context.Context], [ptrType$6], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "UserAgent", name: "UserAgent", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Cookie", name: "Cookie", pkg: "", typ: $funcType([$String], [ptrType$26, $error], false)}, {prop: "AddCookie", name: "AddCookie", pkg: "", typ: $funcType([ptrType$26], [], false)}, {prop: "Referer", name: "Referer", pkg: "", typ: $funcType([], [$String], false)}, {prop: "MultipartReader", name: "MultipartReader", pkg: "", typ: $funcType([], [ptrType$87, $error], false)}, {prop: "multipartReader", name: "multipartReader", pkg: "net/http", typ: $funcType([$Bool], [ptrType$87, $error], false)}, {prop: "isH2Upgrade", name: "isH2Upgrade", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "WriteProxy", name: "WriteProxy", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([io.Writer, $Bool, Header, funcType$3], [$error], false)}, {prop: "BasicAuth", name: "BasicAuth", pkg: "", typ: $funcType([], [$String, $String, $Bool], false)}, {prop: "SetBasicAuth", name: "SetBasicAuth", pkg: "", typ: $funcType([$String, $String], [], false)}, {prop: "ParseForm", name: "ParseForm", pkg: "", typ: $funcType([], [$error], false)}, {prop: "ParseMultipartForm", name: "ParseMultipartForm", pkg: "", typ: $funcType([$Int64], [$error], false)}, {prop: "FormValue", name: "FormValue", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "PostFormValue", name: "PostFormValue", pkg: "", typ: $funcType([$String], [$String], false)}, {prop: "FormFile", name: "FormFile", pkg: "", typ: $funcType([$String], [multipart.File, ptrType$27, $error], false)}, {prop: "expectsContinue", name: "expectsContinue", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "wantsHttp10KeepAlive", name: "wantsHttp10KeepAlive", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "wantsClose", name: "wantsClose", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closeBody", name: "closeBody", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "isReplayable", name: "isReplayable", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "outgoingLength", name: "outgoingLength", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "requiresHTTP1", name: "requiresHTTP1", pkg: "net/http", typ: $funcType([], [$Bool], false)}];
|
|
113524
|
+
ptrType$91.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113459
113525
|
ptrType$18.methods = [{prop: "Cookies", name: "Cookies", pkg: "", typ: $funcType([], [sliceType$9], false)}, {prop: "Location", name: "Location", pkg: "", typ: $funcType([], [ptrType$19, $error], false)}, {prop: "ProtoAtLeast", name: "ProtoAtLeast", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([io.Writer], [$error], false)}, {prop: "closeBody", name: "closeBody", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "bodyIsWritable", name: "bodyIsWritable", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "isProtocolSwitch", name: "isProtocolSwitch", pkg: "net/http", typ: $funcType([], [$Bool], false)}];
|
|
113460
|
-
ptrType$
|
|
113526
|
+
ptrType$98.methods = [{prop: "hijacked", name: "hijacked", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "hijackLocked", name: "hijackLocked", pkg: "net/http", typ: $funcType([], [net.Conn, ptrType$92, $error], false)}, {prop: "readRequest", name: "readRequest", pkg: "net/http", typ: $funcType([context.Context], [ptrType$95, $error], false)}, {prop: "finalFlush", name: "finalFlush", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "closeWriteAndWait", name: "closeWriteAndWait", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setState", name: "setState", pkg: "net/http", typ: $funcType([net.Conn, ConnState, $Bool], [], false)}, {prop: "getState", name: "getState", pkg: "net/http", typ: $funcType([], [ConnState, $Int64], false)}, {prop: "serve", name: "serve", pkg: "net/http", typ: $funcType([context.Context], [], false)}];
|
|
113461
113527
|
ptrType$131.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "flush", name: "flush", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "writeHeader", name: "writeHeader", pkg: "net/http", typ: $funcType([sliceType$4], [], false)}];
|
|
113462
|
-
ptrType$
|
|
113528
|
+
ptrType$95.methods = [{prop: "finalTrailers", name: "finalTrailers", pkg: "net/http", typ: $funcType([], [Header], false)}, {prop: "declareTrailer", name: "declareTrailer", pkg: "net/http", typ: $funcType([$String], [], false)}, {prop: "requestTooLarge", name: "requestTooLarge", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "needsSniff", name: "needsSniff", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "ReadFrom", name: "ReadFrom", pkg: "", typ: $funcType([io.Reader], [$Int64, $error], false)}, {prop: "Header", name: "Header", pkg: "", typ: $funcType([], [Header], false)}, {prop: "WriteHeader", name: "WriteHeader", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "bodyAllowed", name: "bodyAllowed", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}, {prop: "write", name: "write", pkg: "net/http", typ: $funcType([$Int, sliceType$4, $String], [$Int, $error], false)}, {prop: "finishRequest", name: "finishRequest", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "shouldReuseConnection", name: "shouldReuseConnection", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closedRequestBodyEarly", name: "closedRequestBodyEarly", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Flush", name: "Flush", pkg: "", typ: $funcType([], [], false)}, {prop: "sendExpectationFailed", name: "sendExpectationFailed", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Hijack", name: "Hijack", pkg: "", typ: $funcType([], [net.Conn, ptrType$92, $error], false)}, {prop: "CloseNotify", name: "CloseNotify", pkg: "", typ: $funcType([], [chanType$9], false)}];
|
|
113463
113529
|
ptrType$24.methods = [{prop: "isSet", name: "isSet", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "setTrue", name: "setTrue", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setFalse", name: "setFalse", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113464
|
-
ptrType$
|
|
113465
|
-
ptrType$
|
|
113530
|
+
ptrType$94.methods = [{prop: "lock", name: "lock", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "unlock", name: "unlock", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "startBackgroundRead", name: "startBackgroundRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "backgroundRead", name: "backgroundRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "abortPendingRead", name: "abortPendingRead", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "setReadLimit", name: "setReadLimit", pkg: "net/http", typ: $funcType([$Int64], [], false)}, {prop: "setInfiniteReadLimit", name: "setInfiniteReadLimit", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "hitReadLimit", name: "hitReadLimit", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "handleReadError", name: "handleReadError", pkg: "net/http", typ: $funcType([$error], [], false)}, {prop: "closeNotify", name: "closeNotify", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113531
|
+
ptrType$100.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
113466
113532
|
extraHeader.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([ptrType$9], [], false)}];
|
|
113467
113533
|
statusError.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113468
113534
|
HandlerFunc.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113469
113535
|
ptrType$132.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113470
113536
|
ptrType$133.methods = [{prop: "match", name: "match", pkg: "net/http", typ: $funcType([$String], [Handler, $String], false)}, {prop: "redirectToPathSlash", name: "redirectToPathSlash", pkg: "net/http", typ: $funcType([$String, $String, ptrType$19], [ptrType$19, $Bool], false)}, {prop: "shouldRedirectRLocked", name: "shouldRedirectRLocked", pkg: "net/http", typ: $funcType([$String, $String], [$Bool], false)}, {prop: "Handler", name: "Handler", pkg: "", typ: $funcType([ptrType$6], [Handler, $String], false)}, {prop: "handler", name: "handler", pkg: "net/http", typ: $funcType([$String, $String], [Handler, $String], false)}, {prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}, {prop: "Handle", name: "Handle", pkg: "", typ: $funcType([$String, Handler], [], false)}, {prop: "HandleFunc", name: "HandleFunc", pkg: "", typ: $funcType([$String, funcType$9], [], false)}];
|
|
113471
|
-
ptrType$51.methods = [{prop: "newConn", name: "newConn", pkg: "net/http", typ: $funcType([net.Conn], [ptrType$
|
|
113537
|
+
ptrType$51.methods = [{prop: "newConn", name: "newConn", pkg: "net/http", typ: $funcType([net.Conn], [ptrType$98], false)}, {prop: "maxHeaderBytes", name: "maxHeaderBytes", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "initialReadLimitSize", name: "initialReadLimitSize", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "getDoneChan", name: "getDoneChan", pkg: "net/http", typ: $funcType([], [chanType$3], false)}, {prop: "getDoneChanLocked", name: "getDoneChanLocked", pkg: "net/http", typ: $funcType([], [chanType$2], false)}, {prop: "closeDoneChanLocked", name: "closeDoneChanLocked", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Shutdown", name: "Shutdown", pkg: "", typ: $funcType([context.Context], [$error], false)}, {prop: "RegisterOnShutdown", name: "RegisterOnShutdown", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "numListeners", name: "numListeners", pkg: "net/http", typ: $funcType([], [$Int], false)}, {prop: "closeIdleConns", name: "closeIdleConns", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "closeListenersLocked", name: "closeListenersLocked", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "ListenAndServe", name: "ListenAndServe", pkg: "", typ: $funcType([], [$error], false)}, {prop: "shouldConfigureHTTP2ForServe", name: "shouldConfigureHTTP2ForServe", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "Serve", name: "Serve", pkg: "", typ: $funcType([net.Listener], [$error], false)}, {prop: "ServeTLS", name: "ServeTLS", pkg: "", typ: $funcType([net.Listener, $String, $String], [$error], false)}, {prop: "trackListener", name: "trackListener", pkg: "net/http", typ: $funcType([ptrType$102, $Bool], [$Bool], false)}, {prop: "trackConn", name: "trackConn", pkg: "net/http", typ: $funcType([ptrType$98, $Bool], [], false)}, {prop: "idleTimeout", name: "idleTimeout", pkg: "net/http", typ: $funcType([], [time.Duration], false)}, {prop: "readHeaderTimeout", name: "readHeaderTimeout", pkg: "net/http", typ: $funcType([], [time.Duration], false)}, {prop: "doKeepAlives", name: "doKeepAlives", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "shuttingDown", name: "shuttingDown", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "SetKeepAlivesEnabled", name: "SetKeepAlivesEnabled", pkg: "", typ: $funcType([$Bool], [], false)}, {prop: "logf", name: "logf", pkg: "net/http", typ: $funcType([$String, sliceType], [], true)}, {prop: "ListenAndServeTLS", name: "ListenAndServeTLS", pkg: "", typ: $funcType([$String, $String], [$error], false)}, {prop: "setupHTTP2_ServeTLS", name: "setupHTTP2_ServeTLS", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "setupHTTP2_Serve", name: "setupHTTP2_Serve", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "onceSetNextProtoDefaults_Serve", name: "onceSetNextProtoDefaults_Serve", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "onceSetNextProtoDefaults", name: "onceSetNextProtoDefaults", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
113472
113538
|
ConnState.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113473
113539
|
serverHandler.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
113474
113540
|
ptrType$135.methods = [{prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
@@ -113486,7 +113552,7 @@ $packages["net/http"] = (function() {
|
|
|
113486
113552
|
ptrType$105.methods = [{prop: "shouldSendChunkedRequestBody", name: "shouldSendChunkedRequestBody", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "probeRequestBody", name: "probeRequestBody", pkg: "net/http", typ: $funcType([], [], false)}, {prop: "shouldSendContentLength", name: "shouldSendContentLength", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "writeHeader", name: "writeHeader", pkg: "net/http", typ: $funcType([io.Writer, ptrType$48], [$error], false)}, {prop: "writeBody", name: "writeBody", pkg: "net/http", typ: $funcType([io.Writer], [$error], false)}, {prop: "doBodyCopy", name: "doBodyCopy", pkg: "net/http", typ: $funcType([io.Writer, io.Reader], [$Int64, $error], false)}, {prop: "unwrapBody", name: "unwrapBody", pkg: "net/http", typ: $funcType([], [io.Reader], false)}];
|
|
113487
113553
|
ptrType$142.methods = [{prop: "protoAtLeast", name: "protoAtLeast", pkg: "net/http", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "parseTransferEncoding", name: "parseTransferEncoding", pkg: "net/http", typ: $funcType([], [$error], false)}];
|
|
113488
113554
|
ptrType$107.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
113489
|
-
ptrType$
|
|
113555
|
+
ptrType$97.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "readLocked", name: "readLocked", pkg: "net/http", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "readTrailer", name: "readTrailer", pkg: "net/http", typ: $funcType([], [$error], false)}, {prop: "unreadDataSizeLocked", name: "unreadDataSizeLocked", pkg: "net/http", typ: $funcType([], [$Int64], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "didEarlyClose", name: "didEarlyClose", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "bodyRemains", name: "bodyRemains", pkg: "net/http", typ: $funcType([], [$Bool], false)}, {prop: "registerOnHitEOF", name: "registerOnHitEOF", pkg: "net/http", typ: $funcType([funcType], [], false)}];
|
|
113490
113556
|
bodyLocked.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113491
113557
|
finishAsyncByteRead.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
113492
113558
|
bufioFlushWriter.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
@@ -113556,10 +113622,10 @@ $packages["net/http"] = (function() {
|
|
|
113556
113622
|
http2OpenStreamOptions.init("", [{prop: "PusherID", name: "PusherID", embedded: false, exported: true, typ: $Uint32, tag: ""}]);
|
|
113557
113623
|
http2FrameWriteRequest.init("net/http", [{prop: "write", name: "write", embedded: false, exported: false, typ: http2writeFramer, tag: ""}, {prop: "stream", name: "stream", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "done", name: "done", embedded: false, exported: false, typ: chanType, tag: ""}]);
|
|
113558
113624
|
http2writeQueue.init("net/http", [{prop: "s", name: "s", embedded: false, exported: false, typ: sliceType$24, tag: ""}]);
|
|
113559
|
-
http2writeQueuePool.init(ptrType$
|
|
113625
|
+
http2writeQueuePool.init(ptrType$81);
|
|
113560
113626
|
http2PriorityWriteSchedulerConfig.init("", [{prop: "MaxClosedNodesInTree", name: "MaxClosedNodesInTree", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "MaxIdleNodesInTree", name: "MaxIdleNodesInTree", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ThrottleOutOfOrderWrites", name: "ThrottleOutOfOrderWrites", embedded: false, exported: true, typ: $Bool, tag: ""}]);
|
|
113561
|
-
http2priorityNode.init("net/http", [{prop: "q", name: "q", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "id", name: "id", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "weight", name: "weight", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "state", name: "state", embedded: false, exported: false, typ: http2priorityNodeState, tag: ""}, {prop: "bytes", name: "bytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "subtreeBytes", name: "subtreeBytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "parent", name: "parent", embedded: false, exported: false, typ: ptrType$
|
|
113562
|
-
http2sortPriorityNodeSiblings.init(ptrType$
|
|
113627
|
+
http2priorityNode.init("net/http", [{prop: "q", name: "q", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "id", name: "id", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "weight", name: "weight", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "state", name: "state", embedded: false, exported: false, typ: http2priorityNodeState, tag: ""}, {prop: "bytes", name: "bytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "subtreeBytes", name: "subtreeBytes", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "parent", name: "parent", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "kids", name: "kids", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "prev", name: "prev", embedded: false, exported: false, typ: ptrType$83, tag: ""}, {prop: "next", name: "next", embedded: false, exported: false, typ: ptrType$83, tag: ""}]);
|
|
113628
|
+
http2sortPriorityNodeSiblings.init(ptrType$83);
|
|
113563
113629
|
http2priorityWriteScheduler.init("net/http", [{prop: "root", name: "root", embedded: false, exported: false, typ: http2priorityNode, tag: ""}, {prop: "nodes", name: "nodes", embedded: false, exported: false, typ: mapType$10, tag: ""}, {prop: "maxID", name: "maxID", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "closedNodes", name: "closedNodes", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "idleNodes", name: "idleNodes", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "maxClosedNodesInTree", name: "maxClosedNodesInTree", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "maxIdleNodesInTree", name: "maxIdleNodesInTree", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "writeThrottleLimit", name: "writeThrottleLimit", embedded: false, exported: false, typ: $Int32, tag: ""}, {prop: "enableWriteThrottle", name: "enableWriteThrottle", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "tmp", name: "tmp", embedded: false, exported: false, typ: sliceType$25, tag: ""}, {prop: "queuePool", name: "queuePool", embedded: false, exported: false, typ: http2writeQueuePool, tag: ""}]);
|
|
113564
113630
|
http2randomWriteScheduler.init("net/http", [{prop: "zero", name: "zero", embedded: false, exported: false, typ: http2writeQueue, tag: ""}, {prop: "sq", name: "sq", embedded: false, exported: false, typ: mapType$11, tag: ""}, {prop: "queuePool", name: "queuePool", embedded: false, exported: false, typ: http2writeQueuePool, tag: ""}]);
|
|
113565
113631
|
Header.init($String, sliceType$2);
|
|
@@ -113577,13 +113643,13 @@ $packages["net/http"] = (function() {
|
|
|
113577
113643
|
Response.init("", [{prop: "Status", name: "Status", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "StatusCode", name: "StatusCode", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Proto", name: "Proto", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "ProtoMajor", name: "ProtoMajor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ProtoMinor", name: "ProtoMinor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Uncompressed", name: "Uncompressed", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Request", name: "Request", embedded: false, exported: true, typ: ptrType$6, tag: ""}, {prop: "TLS", name: "TLS", embedded: false, exported: true, typ: ptrType$21, tag: ""}]);
|
|
113578
113644
|
Handler.init([{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}]);
|
|
113579
113645
|
ResponseWriter.init([{prop: "Header", name: "Header", pkg: "", typ: $funcType([], [Header], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "WriteHeader", name: "WriteHeader", pkg: "", typ: $funcType([$Int], [], false)}]);
|
|
113580
|
-
conn.init("net/http", [{prop: "server", name: "server", embedded: false, exported: false, typ: ptrType$51, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "rwc", name: "rwc", embedded: false, exported: false, typ: net.Conn, tag: ""}, {prop: "remoteAddr", name: "remoteAddr", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tlsState", name: "tlsState", embedded: false, exported: false, typ: ptrType$21, tag: ""}, {prop: "werr", name: "werr", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$
|
|
113581
|
-
chunkWriter.init("net/http", [{prop: "res", name: "res", embedded: false, exported: false, typ: ptrType$
|
|
113582
|
-
response.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
113646
|
+
conn.init("net/http", [{prop: "server", name: "server", embedded: false, exported: false, typ: ptrType$51, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "rwc", name: "rwc", embedded: false, exported: false, typ: net.Conn, tag: ""}, {prop: "remoteAddr", name: "remoteAddr", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tlsState", name: "tlsState", embedded: false, exported: false, typ: ptrType$21, tag: ""}, {prop: "werr", name: "werr", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$94, tag: ""}, {prop: "bufr", name: "bufr", embedded: false, exported: false, typ: ptrType$77, tag: ""}, {prop: "bufw", name: "bufw", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "lastMethod", name: "lastMethod", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "curReq", name: "curReq", embedded: false, exported: false, typ: atomic.Value, tag: ""}, {prop: "curState", name: "curState", embedded: false, exported: false, typ: structType$2, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "hijackedv", name: "hijackedv", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113647
|
+
chunkWriter.init("net/http", [{prop: "res", name: "res", embedded: false, exported: false, typ: ptrType$95, tag: ""}, {prop: "header", name: "header", embedded: false, exported: false, typ: Header, tag: ""}, {prop: "wroteHeader", name: "wroteHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "chunking", name: "chunking", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113648
|
+
response.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$98, tag: ""}, {prop: "req", name: "req", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "reqBody", name: "reqBody", embedded: false, exported: false, typ: io.ReadCloser, tag: ""}, {prop: "cancelCtx", name: "cancelCtx", embedded: false, exported: false, typ: context.CancelFunc, tag: ""}, {prop: "wroteHeader", name: "wroteHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wroteContinue", name: "wroteContinue", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wants10KeepAlive", name: "wants10KeepAlive", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "wantsClose", name: "wantsClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "canWriteContinue", name: "canWriteContinue", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "writeContinueMu", name: "writeContinueMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "w", name: "w", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "cw", name: "cw", embedded: false, exported: false, typ: chunkWriter, tag: ""}, {prop: "handlerHeader", name: "handlerHeader", embedded: false, exported: false, typ: Header, tag: ""}, {prop: "calledHeader", name: "calledHeader", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "written", name: "written", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "contentLength", name: "contentLength", embedded: false, exported: false, typ: $Int64, tag: ""}, {prop: "status", name: "status", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "closeAfterReply", name: "closeAfterReply", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "requestBodyLimitHit", name: "requestBodyLimitHit", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "trailers", name: "trailers", embedded: false, exported: false, typ: sliceType$2, tag: ""}, {prop: "handlerDone", name: "handlerDone", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "dateBuf", name: "dateBuf", embedded: false, exported: false, typ: arrayType$1, tag: ""}, {prop: "clenBuf", name: "clenBuf", embedded: false, exported: false, typ: arrayType$7, tag: ""}, {prop: "statusBuf", name: "statusBuf", embedded: false, exported: false, typ: arrayType$8, tag: ""}, {prop: "closeNotifyCh", name: "closeNotifyCh", embedded: false, exported: false, typ: chanType$10, tag: ""}, {prop: "didCloseNotify", name: "didCloseNotify", embedded: false, exported: false, typ: $Int32, tag: ""}]);
|
|
113583
113649
|
writerOnly.init("", [{prop: "Writer", name: "Writer", embedded: true, exported: true, typ: io.Writer, tag: ""}]);
|
|
113584
113650
|
readResult.init("net/http", [{prop: "_$0", name: "_", embedded: false, exported: false, typ: incomparable, tag: ""}, {prop: "n", name: "n", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "b", name: "b", embedded: false, exported: false, typ: $Uint8, tag: ""}]);
|
|
113585
|
-
connReader.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
113586
|
-
expectContinueReader.init("net/http", [{prop: "resp", name: "resp", embedded: false, exported: false, typ: ptrType$
|
|
113651
|
+
connReader.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$98, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "hasByte", name: "hasByte", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "byteBuf", name: "byteBuf", embedded: false, exported: false, typ: arrayType$6, tag: ""}, {prop: "cond", name: "cond", embedded: false, exported: false, typ: ptrType$73, tag: ""}, {prop: "inRead", name: "inRead", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "aborted", name: "aborted", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "remain", name: "remain", embedded: false, exported: false, typ: $Int64, tag: ""}]);
|
|
113652
|
+
expectContinueReader.init("net/http", [{prop: "resp", name: "resp", embedded: false, exported: false, typ: ptrType$95, tag: ""}, {prop: "readCloser", name: "readCloser", embedded: false, exported: false, typ: io.ReadCloser, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: atomicBool, tag: ""}, {prop: "sawEOF", name: "sawEOF", embedded: false, exported: false, typ: atomicBool, tag: ""}]);
|
|
113587
113653
|
extraHeader.init("net/http", [{prop: "contentType", name: "contentType", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "connection", name: "connection", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "transferEncoding", name: "transferEncoding", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "date", name: "date", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "contentLength", name: "contentLength", embedded: false, exported: false, typ: sliceType$4, tag: ""}]);
|
|
113588
113654
|
closeWriter.init([{prop: "CloseWrite", name: "CloseWrite", pkg: "", typ: $funcType([], [$error], false)}]);
|
|
113589
113655
|
statusError.init("net/http", [{prop: "code", name: "code", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "text", name: "text", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
@@ -113595,9 +113661,9 @@ $packages["net/http"] = (function() {
|
|
|
113595
113661
|
serverHandler.init("net/http", [{prop: "srv", name: "srv", embedded: false, exported: false, typ: ptrType$51, tag: ""}]);
|
|
113596
113662
|
onceCloseListener.init("net/http", [{prop: "Listener", name: "Listener", embedded: true, exported: true, typ: net.Listener, tag: ""}, {prop: "once", name: "once", embedded: false, exported: false, typ: sync.Once, tag: ""}, {prop: "closeErr", name: "closeErr", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
113597
113663
|
globalOptionsHandler.init("", []);
|
|
113598
|
-
initALPNRequest.init("net/http", [{prop: "ctx", name: "ctx", embedded: false, exported: false, typ: context.Context, tag: ""}, {prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$
|
|
113664
|
+
initALPNRequest.init("net/http", [{prop: "ctx", name: "ctx", embedded: false, exported: false, typ: context.Context, tag: ""}, {prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$76, tag: ""}, {prop: "h", name: "h", embedded: false, exported: false, typ: serverHandler, tag: ""}]);
|
|
113599
113665
|
loggingConn.init("net/http", [{prop: "name", name: "name", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "Conn", name: "Conn", embedded: true, exported: true, typ: net.Conn, tag: ""}]);
|
|
113600
|
-
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$
|
|
113666
|
+
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$98, tag: ""}]);
|
|
113601
113667
|
sniffSig.init([{prop: "match", name: "match", pkg: "net/http", typ: $funcType([sliceType$4, $Int], [$String], false)}]);
|
|
113602
113668
|
exactSig.init("net/http", [{prop: "sig", name: "sig", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "ct", name: "ct", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
113603
113669
|
maskedSig.init("net/http", [{prop: "mask", name: "mask", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "pat", name: "pat", embedded: false, exported: false, typ: sliceType$4, tag: ""}, {prop: "skipWS", name: "skipWS", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "ct", name: "ct", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
@@ -113606,11 +113672,11 @@ $packages["net/http"] = (function() {
|
|
|
113606
113672
|
textSig.init("", []);
|
|
113607
113673
|
errorReader.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
113608
113674
|
byteReader.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "done", name: "done", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
113609
|
-
transferWriter.init("net/http", [{prop: "Method", name: "Method", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.Reader, tag: ""}, {prop: "BodyCloser", name: "BodyCloser", embedded: false, exported: true, typ: io.Closer, tag: ""}, {prop: "ResponseToHEAD", name: "ResponseToHEAD", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "IsResponse", name: "IsResponse", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "bodyReadError", name: "bodyReadError", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "FlushHeaders", name: "FlushHeaders", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ByteReadCh", name: "ByteReadCh", embedded: false, exported: true, typ: chanType$
|
|
113675
|
+
transferWriter.init("net/http", [{prop: "Method", name: "Method", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.Reader, tag: ""}, {prop: "BodyCloser", name: "BodyCloser", embedded: false, exported: true, typ: io.Closer, tag: ""}, {prop: "ResponseToHEAD", name: "ResponseToHEAD", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "TransferEncoding", name: "TransferEncoding", embedded: false, exported: true, typ: sliceType$2, tag: ""}, {prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "IsResponse", name: "IsResponse", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "bodyReadError", name: "bodyReadError", embedded: false, exported: false, typ: $error, tag: ""}, {prop: "FlushHeaders", name: "FlushHeaders", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "ByteReadCh", name: "ByteReadCh", embedded: false, exported: true, typ: chanType$11, tag: ""}]);
|
|
113610
113676
|
transferReader.init("", [{prop: "Header", name: "Header", embedded: false, exported: true, typ: Header, tag: ""}, {prop: "StatusCode", name: "StatusCode", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "RequestMethod", name: "RequestMethod", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "ProtoMajor", name: "ProtoMajor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ProtoMinor", name: "ProtoMinor", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Body", name: "Body", embedded: false, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "ContentLength", name: "ContentLength", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "Chunked", name: "Chunked", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Close", name: "Close", embedded: false, exported: true, typ: $Bool, tag: ""}, {prop: "Trailer", name: "Trailer", embedded: false, exported: true, typ: Header, tag: ""}]);
|
|
113611
113677
|
unsupportedTEError.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
113612
|
-
body.init("net/http", [{prop: "src", name: "src", embedded: false, exported: false, typ: io.Reader, tag: ""}, {prop: "hdr", name: "hdr", embedded: false, exported: false, typ: $emptyInterface, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$
|
|
113613
|
-
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$
|
|
113678
|
+
body.init("net/http", [{prop: "src", name: "src", embedded: false, exported: false, typ: io.Reader, tag: ""}, {prop: "hdr", name: "hdr", embedded: false, exported: false, typ: $emptyInterface, tag: ""}, {prop: "r", name: "r", embedded: false, exported: false, typ: ptrType$77, tag: ""}, {prop: "closing", name: "closing", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "doEarlyClose", name: "doEarlyClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "sawEOF", name: "sawEOF", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "earlyClose", name: "earlyClose", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "onHitEOF", name: "onHitEOF", embedded: false, exported: false, typ: funcType, tag: ""}]);
|
|
113679
|
+
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$97, tag: ""}]);
|
|
113614
113680
|
finishAsyncByteRead.init("net/http", [{prop: "tw", name: "tw", embedded: false, exported: false, typ: ptrType$105, tag: ""}]);
|
|
113615
113681
|
bufioFlushWriter.init("net/http", [{prop: "w", name: "w", embedded: false, exported: false, typ: io.Writer, tag: ""}]);
|
|
113616
113682
|
readTrackingBody.init("net/http", [{prop: "ReadCloser", name: "ReadCloser", embedded: true, exported: true, typ: io.ReadCloser, tag: ""}, {prop: "didRead", name: "didRead", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "didClose", name: "didClose", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
@@ -113701,6 +113767,7 @@ $packages["net/http"] = (function() {
|
|
|
113701
113767
|
}))]);
|
|
113702
113768
|
http2errReadEmpty = errors.New("read from empty dataBuffer");
|
|
113703
113769
|
http2errCodeName = $makeMap(http2ErrCode.keyFor, [{ k: 0, v: "NO_ERROR" }, { k: 1, v: "PROTOCOL_ERROR" }, { k: 2, v: "INTERNAL_ERROR" }, { k: 3, v: "FLOW_CONTROL_ERROR" }, { k: 4, v: "SETTINGS_TIMEOUT" }, { k: 5, v: "STREAM_CLOSED" }, { k: 6, v: "FRAME_SIZE_ERROR" }, { k: 7, v: "REFUSED_STREAM" }, { k: 8, v: "CANCEL" }, { k: 9, v: "COMPRESSION_ERROR" }, { k: 10, v: "CONNECT_ERROR" }, { k: 11, v: "ENHANCE_YOUR_CALM" }, { k: 12, v: "INADEQUATE_SECURITY" }, { k: 13, v: "HTTP_1_1_REQUIRED" }]);
|
|
113770
|
+
http2errFromPeer = errors.New("received from peer");
|
|
113704
113771
|
http2errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers");
|
|
113705
113772
|
http2errPseudoAfterRegular = errors.New("pseudo header field after regular");
|
|
113706
113773
|
http2padZeros = $makeSlice(sliceType$4, 255);
|
|
@@ -113768,6 +113835,7 @@ $packages["net/http"] = (function() {
|
|
|
113768
113835
|
http2errStopReqBodyWrite = errors.New("http2: aborting request body write");
|
|
113769
113836
|
http2errStopReqBodyWriteAndCancel = errors.New("http2: canceling request");
|
|
113770
113837
|
http2errReqBodyTooLong = errors.New("http2: request body larger than specified content length");
|
|
113838
|
+
http2errNilRequestURL = errors.New("http2: Request.URI is nil");
|
|
113771
113839
|
http2errClosedResponseBody = errors.New("http2: response body closed");
|
|
113772
113840
|
http2errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit");
|
|
113773
113841
|
http2errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit");
|
|
@@ -136638,24 +136706,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136638
136706
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136639
136707
|
/* */ $s = 11; continue;
|
|
136640
136708
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136641
|
-
s$
|
|
136642
|
-
h = ($pointerOfStructConversion(((s$
|
|
136709
|
+
s$1[0] = _ref.$val;
|
|
136710
|
+
h = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
|
|
136643
136711
|
$s = -1; return ((h)).$get();
|
|
136644
136712
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136645
|
-
s$
|
|
136646
|
-
h$1 = ($pointerOfStructConversion(((s$
|
|
136713
|
+
s$6[0] = _ref.$val;
|
|
136714
|
+
h$1 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136647
136715
|
h$1.Len = $imul(h$1.Len, (2));
|
|
136648
136716
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136649
136717
|
$s = -1; return ((h$1)).$get();
|
|
136650
136718
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136651
|
-
s$
|
|
136652
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136719
|
+
s$7[0] = _ref.$val;
|
|
136720
|
+
h$2 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
|
|
136653
136721
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136654
136722
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136655
136723
|
$s = -1; return ((h$2)).$get();
|
|
136656
136724
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136657
|
-
s$
|
|
136658
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136725
|
+
s$8[0] = _ref.$val;
|
|
136726
|
+
h$3 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136659
136727
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136660
136728
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136661
136729
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136663,32 +136731,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136663
136731
|
s$10 = _ref.$val;
|
|
136664
136732
|
$s = -1; return s$10;
|
|
136665
136733
|
/* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
|
|
136666
|
-
s$
|
|
136667
|
-
h$4 = ($pointerOfStructConversion(((s$
|
|
136734
|
+
s$2[0] = _ref.$val;
|
|
136735
|
+
h$4 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
|
|
136668
136736
|
h$4.Len = $imul(h$4.Len, (2));
|
|
136669
136737
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136670
136738
|
$s = -1; return ((h$4)).$get();
|
|
136671
136739
|
/* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
|
|
136672
|
-
s$
|
|
136673
|
-
h$5 = ($pointerOfStructConversion(((s$
|
|
136740
|
+
s$9[0] = _ref.$val;
|
|
136741
|
+
h$5 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136674
136742
|
h$5.Len = $imul(h$5.Len, (4));
|
|
136675
136743
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136676
136744
|
$s = -1; return ((h$5)).$get();
|
|
136677
136745
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136678
|
-
s$
|
|
136679
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136746
|
+
s$3[0] = _ref.$val;
|
|
136747
|
+
h$6 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
|
|
136680
136748
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136681
136749
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136682
136750
|
$s = -1; return ((h$6)).$get();
|
|
136683
136751
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136684
|
-
s$
|
|
136685
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136752
|
+
s$4[0] = _ref.$val;
|
|
136753
|
+
h$7 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136686
136754
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136687
136755
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136688
136756
|
$s = -1; return ((h$7)).$get();
|
|
136689
136757
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136690
|
-
s$
|
|
136691
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136758
|
+
s$5[0] = _ref.$val;
|
|
136759
|
+
h$8 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136692
136760
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136693
136761
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136694
136762
|
$s = -1; return ((h$8)).$get();
|
|
@@ -141625,14 +141693,14 @@ $packages["image/draw"] = (function() {
|
|
|
141625
141693
|
/* */ if ($assertType(_ref$1, ptrType$5, true)[1]) { $s = 8; continue; }
|
|
141626
141694
|
/* */ $s = 9; continue;
|
|
141627
141695
|
/* if ($assertType(_ref$1, ptrType$1, true)[1]) { */ case 6:
|
|
141628
|
-
src0[0] = _ref$1.$val;
|
|
141696
|
+
src0$2[0] = _ref$1.$val;
|
|
141629
141697
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141630
141698
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141631
141699
|
r$2 = 0;
|
|
141632
141700
|
g$1 = 0;
|
|
141633
141701
|
b$1 = 0;
|
|
141634
141702
|
a$1 = 0;
|
|
141635
|
-
_tuple$2 = $clone(src0[0].RGBAAt(x$1, y), color.RGBA).RGBA();
|
|
141703
|
+
_tuple$2 = $clone(src0$2[0].RGBAAt(x$1, y), color.RGBA).RGBA();
|
|
141636
141704
|
r$2 = _tuple$2[0];
|
|
141637
141705
|
g$1 = _tuple$2[1];
|
|
141638
141706
|
b$1 = _tuple$2[2];
|
|
@@ -141641,14 +141709,14 @@ $packages["image/draw"] = (function() {
|
|
|
141641
141709
|
}; })(out, src, src0, src0$1, src0$2);
|
|
141642
141710
|
$s = 9; continue;
|
|
141643
141711
|
/* } else if ($assertType(_ref$1, ptrType$4, true)[1]) { */ case 7:
|
|
141644
|
-
src0
|
|
141712
|
+
src0[0] = _ref$1.$val;
|
|
141645
141713
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141646
141714
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141647
141715
|
r$2 = 0;
|
|
141648
141716
|
g$1 = 0;
|
|
141649
141717
|
b$1 = 0;
|
|
141650
141718
|
a$1 = 0;
|
|
141651
|
-
_tuple$2 = $clone(src0
|
|
141719
|
+
_tuple$2 = $clone(src0[0].NRGBAAt(x$1, y), color.NRGBA).RGBA();
|
|
141652
141720
|
r$2 = _tuple$2[0];
|
|
141653
141721
|
g$1 = _tuple$2[1];
|
|
141654
141722
|
b$1 = _tuple$2[2];
|
|
@@ -141657,14 +141725,14 @@ $packages["image/draw"] = (function() {
|
|
|
141657
141725
|
}; })(out, src, src0, src0$1, src0$2);
|
|
141658
141726
|
$s = 9; continue;
|
|
141659
141727
|
/* } else if ($assertType(_ref$1, ptrType$5, true)[1]) { */ case 8:
|
|
141660
|
-
src0$
|
|
141728
|
+
src0$1[0] = _ref$1.$val;
|
|
141661
141729
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
141662
141730
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
141663
141731
|
r$2 = 0;
|
|
141664
141732
|
g$1 = 0;
|
|
141665
141733
|
b$1 = 0;
|
|
141666
141734
|
a$1 = 0;
|
|
141667
|
-
_tuple$2 = $clone(src0$
|
|
141735
|
+
_tuple$2 = $clone(src0$1[0].YCbCrAt(x$1, y), color.YCbCr).RGBA();
|
|
141668
141736
|
r$2 = _tuple$2[0];
|
|
141669
141737
|
g$1 = _tuple$2[1];
|
|
141670
141738
|
b$1 = _tuple$2[2];
|