@supraio/client-daemon-js 0.0.1-master.1 → 0.0.1-master.10
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/daemon/plain.d.ts +1 -0
- package/daemon/wasm.d.ts +2 -0
- package/daemon.d.ts +1 -0
- package/daemon.js +334 -91
- package/daemon.js.map +3 -3
- package/dom/script.d.ts +1 -0
- package/env/consts.d.ts +1 -0
- package/fs/browserfs.d.ts +5 -0
- package/go/go.d.ts +25 -0
- package/package.json +7 -4
- package/screen/options.d.ts +10 -0
- package/screen/plain.d.ts +1 -0
- package/screen/wasm.d.ts +10 -0
- package/screen.d.ts +1 -0
- package/screen.js +33 -17
- package/screen.js.map +3 -3
- package/sdk.d.ts +4 -0
- package/sdk.js +17563 -0
- package/sdk.js.map +7 -0
- package/supra-client-daemon.js +552 -523
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +556 -527
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
- package/wasm_exec.js +7 -0
package/supra-client-screen.js
CHANGED
|
@@ -5025,7 +5025,7 @@ $packages["internal/reflectlite"] = (function() {
|
|
|
5025
5025
|
return $pkg;
|
|
5026
5026
|
})();
|
|
5027
5027
|
$packages["errors"] = (function() {
|
|
5028
|
-
var $pkg = {}, $init, reflectlite, errorString, ptrType,
|
|
5028
|
+
var $pkg = {}, $init, reflectlite, errorString, ptrType, ptrType$1, errorType, _r, New;
|
|
5029
5029
|
reflectlite = $packages["internal/reflectlite"];
|
|
5030
5030
|
errorString = $pkg.errorString = $newType(0, $kindStruct, "errors.errorString", true, "errors", false, function(s_) {
|
|
5031
5031
|
this.$val = this;
|
|
@@ -5036,8 +5036,6 @@ $packages["errors"] = (function() {
|
|
|
5036
5036
|
this.s = s_;
|
|
5037
5037
|
});
|
|
5038
5038
|
ptrType = $ptrType($error);
|
|
5039
|
-
interfaceType = $interfaceType([{prop: "Unwrap", name: "Unwrap", pkg: "", typ: $funcType([], [$error], false)}]);
|
|
5040
|
-
interfaceType$1 = $interfaceType([{prop: "Is", name: "Is", pkg: "", typ: $funcType([$error], [$Bool], false)}]);
|
|
5041
5039
|
ptrType$1 = $ptrType(errorString);
|
|
5042
5040
|
New = function(text) {
|
|
5043
5041
|
var text;
|
|
@@ -5050,53 +5048,6 @@ $packages["errors"] = (function() {
|
|
|
5050
5048
|
return e.s;
|
|
5051
5049
|
};
|
|
5052
5050
|
errorString.prototype.Error = function() { return this.$val.Error(); };
|
|
5053
|
-
Unwrap = function(err) {
|
|
5054
|
-
var _r$1, _tuple, err, ok, u, $s, $r;
|
|
5055
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; _tuple = $f._tuple; err = $f.err; ok = $f.ok; u = $f.u; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
5056
|
-
_tuple = $assertType(err, interfaceType, true);
|
|
5057
|
-
u = _tuple[0];
|
|
5058
|
-
ok = _tuple[1];
|
|
5059
|
-
if (!ok) {
|
|
5060
|
-
$s = -1; return $ifaceNil;
|
|
5061
|
-
}
|
|
5062
|
-
_r$1 = u.Unwrap(); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
5063
|
-
$s = -1; return _r$1;
|
|
5064
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Unwrap }; } $f._r$1 = _r$1; $f._tuple = _tuple; $f.err = err; $f.ok = ok; $f.u = u; $f.$s = $s; $f.$r = $r; return $f;
|
|
5065
|
-
};
|
|
5066
|
-
$pkg.Unwrap = Unwrap;
|
|
5067
|
-
Is = function(err, target) {
|
|
5068
|
-
var _r$1, _r$2, _r$3, _tuple, _v, err, isComparable, ok, target, x, $s, $r;
|
|
5069
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _tuple = $f._tuple; _v = $f._v; err = $f.err; isComparable = $f.isComparable; ok = $f.ok; target = $f.target; x = $f.x; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
5070
|
-
if ($interfaceIsEqual(target, $ifaceNil)) {
|
|
5071
|
-
$s = -1; return $interfaceIsEqual(err, target);
|
|
5072
|
-
}
|
|
5073
|
-
_r$1 = reflectlite.TypeOf(target).Comparable(); /* */ $s = 1; case 1: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
5074
|
-
isComparable = _r$1;
|
|
5075
|
-
/* while (true) { */ case 2:
|
|
5076
|
-
if (isComparable && $interfaceIsEqual(err, target)) {
|
|
5077
|
-
$s = -1; return true;
|
|
5078
|
-
}
|
|
5079
|
-
_tuple = $assertType(err, interfaceType$1, true);
|
|
5080
|
-
x = _tuple[0];
|
|
5081
|
-
ok = _tuple[1];
|
|
5082
|
-
if (!(ok)) { _v = false; $s = 6; continue s; }
|
|
5083
|
-
_r$2 = x.Is(target); /* */ $s = 7; case 7: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
5084
|
-
_v = _r$2; case 6:
|
|
5085
|
-
/* */ if (_v) { $s = 4; continue; }
|
|
5086
|
-
/* */ $s = 5; continue;
|
|
5087
|
-
/* if (_v) { */ case 4:
|
|
5088
|
-
$s = -1; return true;
|
|
5089
|
-
/* } */ case 5:
|
|
5090
|
-
_r$3 = Unwrap(err); /* */ $s = 8; case 8: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
5091
|
-
err = _r$3;
|
|
5092
|
-
if ($interfaceIsEqual(err, $ifaceNil)) {
|
|
5093
|
-
$s = -1; return false;
|
|
5094
|
-
}
|
|
5095
|
-
/* } */ $s = 2; continue; case 3:
|
|
5096
|
-
$s = -1; return false;
|
|
5097
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Is }; } $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._tuple = _tuple; $f._v = _v; $f.err = err; $f.isComparable = isComparable; $f.ok = ok; $f.target = target; $f.x = x; $f.$s = $s; $f.$r = $r; return $f;
|
|
5098
|
-
};
|
|
5099
|
-
$pkg.Is = Is;
|
|
5100
5051
|
ptrType$1.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
5101
5052
|
errorString.init("errors", [{prop: "s", name: "s", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
5102
5053
|
$init = function() {
|
|
@@ -25057,8 +25008,8 @@ $packages["time"] = (function() {
|
|
|
25057
25008
|
return [nhi, nlo];
|
|
25058
25009
|
};
|
|
25059
25010
|
Date = function(year, month, day, hour, min, sec, nsec, loc) {
|
|
25060
|
-
var _r, _r$1,
|
|
25061
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1;
|
|
25011
|
+
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;
|
|
25012
|
+
/* */ $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:
|
|
25062
25013
|
if (loc === ptrType$2.nil) {
|
|
25063
25014
|
$panic(new $String("time: missing Location in call to Date"));
|
|
25064
25015
|
}
|
|
@@ -25096,27 +25047,20 @@ $packages["time"] = (function() {
|
|
|
25096
25047
|
/* */ if (!((offset === 0))) { $s = 2; continue; }
|
|
25097
25048
|
/* */ $s = 3; continue;
|
|
25098
25049
|
/* if (!((offset === 0))) { */ case 2:
|
|
25099
|
-
|
|
25100
|
-
|
|
25101
|
-
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
|
-
|
|
25106
|
-
|
|
25107
|
-
$s = 7; continue;
|
|
25108
|
-
/* } else if ((utc.$high > end.$high || (utc.$high === end.$high && utc.$low >= end.$low))) { */ case 6:
|
|
25109
|
-
_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; }
|
|
25110
|
-
_tuple$7 = _r$2;
|
|
25111
|
-
offset = _tuple$7[1];
|
|
25112
|
-
/* } */ case 7:
|
|
25113
|
-
case 4:
|
|
25050
|
+
utc = (x$7 = (new $Int64(0, offset)), new $Int64(unix.$high - x$7.$high, unix.$low - x$7.$low));
|
|
25051
|
+
/* */ 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; }
|
|
25052
|
+
/* */ $s = 5; continue;
|
|
25053
|
+
/* 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:
|
|
25054
|
+
_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; }
|
|
25055
|
+
_tuple$6 = _r$1;
|
|
25056
|
+
offset = _tuple$6[1];
|
|
25057
|
+
/* } */ case 5:
|
|
25114
25058
|
unix = (x$8 = (new $Int64(0, offset)), new $Int64(unix.$high - x$8.$high, unix.$low - x$8.$low));
|
|
25115
25059
|
/* } */ case 3:
|
|
25116
25060
|
t = $clone(unixTime(unix, ((nsec >> 0))), Time);
|
|
25117
25061
|
t.setLoc(loc);
|
|
25118
25062
|
$s = -1; return t;
|
|
25119
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Date }; } $f._r = _r; $f._r$1 = _r$1; $f.
|
|
25063
|
+
/* */ } 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;
|
|
25120
25064
|
};
|
|
25121
25065
|
$pkg.Date = Date;
|
|
25122
25066
|
Time.ptr.prototype.Truncate = function(d) {
|
|
@@ -59145,7 +59089,7 @@ $packages["vendor/golang.org/x/net/dns/dnsmessage"] = (function() {
|
|
|
59145
59089
|
return $pkg;
|
|
59146
59090
|
})();
|
|
59147
59091
|
$packages["net"] = (function() {
|
|
59148
|
-
var $pkg = {}, $init, context, errors, bytealg, nettrace, poll, singleflight, io, os, runtime, sort, sync, syscall, time, dnsmessage, ListenConfig, sysListener, SRV, MX, NS, Interface, Flags, ipv6ZoneCache, IP, IPMask, IPNet, IPAddr, IPConn, ipStackCapabilities, addrList, Resolver, onlyValuesCtx, HardwareAddr, Addr, Conn, conn, PacketConn, Listener, Error, OpError, timeout, temporary, ParseError, AddrError, UnknownNetworkError, timeoutError, DNSError, writerOnly, netFD, bufferedPipe, file, rawConn, rawListener, sockaddr, TCPAddr, TCPConn, TCPListener, UDPAddr, UDPConn, UnixAddr, UnixConn, UnixListener, ptrType, sliceType, arrayType, sliceType$1, ptrType$1, sliceType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, ptrType$11, sliceType$3, sliceType$4, arrayType$1, ptrType$12, ptrType$13, ptrType$14, ptrType$15, structType$3, sliceType$5, ptrType$16, arrayType$2, arrayType$3, sliceType$6, funcType, sliceType$7, ptrType$17, sliceType$8, ptrType$18, sliceType$9, ptrType$19, sliceType$10, ptrType$20, ptrType$21, ptrType$22, ptrType$23, ptrType$24, ptrType$25, ptrType$26, ptrType$27, sliceType$11, ptrType$28, arrayType$4, ptrType$30, ptrType$31, ptrType$32, ptrType$33, ptrType$34, ptrType$35, funcType$1, ptrType$38, ptrType$39, ptrType$40, mapType$1, mapType$2, ptrType$41, ptrType$42, funcType$2, ptrType$43, funcType$3, ptrType$44, ptrType$45, chanType$1, funcType$4, funcType$5, ptrType$49, testHookLookupIP, errInvalidInterface, errInvalidInterfaceIndex, errInvalidInterfaceName, errNoSuchInterface, errNoSuchMulticastInterface, flagNames, zoneCache, v4InV6Prefix, classAMask, classBMask, classCMask, ipStackCaps, protocols, services, dnsWaitGroup, netGo, errNoSuitableAddress, errMissingAddress, errCanceled, aLongTimeAgo, errTimeout, errNoSuchHost, errClosed, listenersMu, listeners, portCounterMu, portCounter, onceReadServices, init, parseNetwork, Listen, isDomainName, isConnError, interfaceTable, interfaceAddrTable, interfaceMulticastAddrTable, IPv4, IPv4Mask, isZeros, allFF, ubtoa, hexString, ipEmptyString, simpleMaskLength, networkNumberAndMask, parseIPv4, parseIPv6Zone, parseIPv6, ParseIP, parseIPZone, newIPConn, stripIPv4Header, supportsIPv4, supportsIPv4map, isIPv4, filterAddrList, ipv4only, ipv6only, SplitHostPort, splitHostZone, JoinHostPort, loopbackIP, favoriteAddrFamily, internetSocket, ipToSockaddr, lookupProtocolMap, lookupPortMap, withUnexpiredValuesPreserved, lookupIPReturn, ipAddrsEface, lookupProtocol, mapErr, genericReadFrom, nextPort, socket, newBufferedPipe, sysSocket, open, countAnyByte, splitAtBytes, getFields, dtoi, xtoi, itoa, uitoa, appendHex, last, lowerASCIIBytes, parsePort, readServices, goLookupPort, newRawConn, newRawListener, sendFile, setReadBuffer, setWriteBuffer, setKeepAlive, setLinger, splice, newTCPConn, setNoDelay, setKeepAlivePeriod, newUDPConn, ResolveUnixAddr, newUnixConn, unixSocket, sotypeToNet;
|
|
59092
|
+
var $pkg = {}, $init, context, errors, bytealg, nettrace, poll, singleflight, io, os, runtime, sort, sync, syscall, time, dnsmessage, ListenConfig, sysListener, SRV, MX, NS, Interface, Flags, ipv6ZoneCache, IP, IPMask, IPNet, IPAddr, IPConn, ipStackCapabilities, addrList, Resolver, onlyValuesCtx, HardwareAddr, Addr, Conn, conn, PacketConn, Listener, Error, OpError, timeout, temporary, ParseError, AddrError, UnknownNetworkError, timeoutError, DNSError, writerOnly, netFD, bufferedPipe, file, rawConn, rawListener, sockaddr, TCPAddr, TCPConn, TCPListener, UDPAddr, UDPConn, UnixAddr, UnixConn, UnixListener, ptrType, sliceType, arrayType, sliceType$1, ptrType$1, sliceType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, ptrType$11, sliceType$3, sliceType$4, arrayType$1, ptrType$12, ptrType$13, ptrType$14, ptrType$15, structType$3, sliceType$5, ptrType$16, arrayType$2, arrayType$3, sliceType$6, funcType, sliceType$7, ptrType$17, sliceType$8, ptrType$18, sliceType$9, ptrType$19, sliceType$10, ptrType$20, ptrType$21, ptrType$22, ptrType$23, ptrType$24, ptrType$25, ptrType$26, ptrType$27, sliceType$11, ptrType$28, arrayType$4, ptrType$30, ptrType$31, ptrType$32, ptrType$33, ptrType$34, ptrType$35, funcType$1, ptrType$38, ptrType$39, ptrType$40, mapType$1, mapType$2, ptrType$41, ptrType$42, funcType$2, ptrType$43, funcType$3, ptrType$44, ptrType$45, chanType$1, funcType$4, funcType$5, ptrType$49, testHookLookupIP, errInvalidInterface, errInvalidInterfaceIndex, errInvalidInterfaceName, errNoSuchInterface, errNoSuchMulticastInterface, flagNames, zoneCache, v4InV6Prefix, classAMask, classBMask, classCMask, ipStackCaps, protocols, services, dnsWaitGroup, errMalformedDNSRecordsDetail, netGo, errNoSuitableAddress, errMissingAddress, errCanceled, aLongTimeAgo, errTimeout, errNoSuchHost, errClosed, listenersMu, listeners, portCounterMu, portCounter, onceReadServices, init, parseNetwork, Listen, isDomainName, isConnError, interfaceTable, interfaceAddrTable, interfaceMulticastAddrTable, IPv4, IPv4Mask, isZeros, allFF, ubtoa, hexString, ipEmptyString, simpleMaskLength, networkNumberAndMask, parseIPv4, parseIPv6Zone, parseIPv6, ParseIP, parseIPZone, newIPConn, stripIPv4Header, supportsIPv4, supportsIPv4map, isIPv4, filterAddrList, ipv4only, ipv6only, SplitHostPort, splitHostZone, JoinHostPort, loopbackIP, favoriteAddrFamily, internetSocket, ipToSockaddr, lookupProtocolMap, lookupPortMap, withUnexpiredValuesPreserved, lookupIPReturn, ipAddrsEface, lookupProtocol, mapErr, genericReadFrom, nextPort, socket, newBufferedPipe, sysSocket, open, countAnyByte, splitAtBytes, getFields, dtoi, xtoi, itoa, uitoa, appendHex, last, lowerASCIIBytes, parsePort, readServices, goLookupPort, newRawConn, newRawListener, sendFile, setReadBuffer, setWriteBuffer, setKeepAlive, setLinger, splice, newTCPConn, setNoDelay, setKeepAlivePeriod, newUDPConn, ResolveUnixAddr, newUnixConn, unixSocket, sotypeToNet;
|
|
59149
59093
|
context = $packages["context"];
|
|
59150
59094
|
errors = $packages["errors"];
|
|
59151
59095
|
bytealg = $packages["internal/bytealg"];
|
|
@@ -62078,13 +62022,13 @@ $packages["net"] = (function() {
|
|
|
62078
62022
|
return ["", err];
|
|
62079
62023
|
}
|
|
62080
62024
|
if (!isDomainName(cname)) {
|
|
62081
|
-
return ["", new DNSError.ptr(
|
|
62025
|
+
return ["", new DNSError.ptr(errMalformedDNSRecordsDetail, host, "", false, false, false)];
|
|
62082
62026
|
}
|
|
62083
62027
|
return [cname, $ifaceNil];
|
|
62084
62028
|
};
|
|
62085
62029
|
Resolver.prototype.LookupCNAME = function(ctx, host) { return this.$val.LookupCNAME(ctx, host); };
|
|
62086
62030
|
Resolver.ptr.prototype.LookupSRV = function(ctx, service, proto, name) {
|
|
62087
|
-
var _i, _ref, _tuple, addr, addrs, cname, ctx, err, name, proto, r, service;
|
|
62031
|
+
var _i, _ref, _tuple, addr, addrs, cname, ctx, err, filteredAddrs, name, proto, r, service;
|
|
62088
62032
|
r = this;
|
|
62089
62033
|
_tuple = r.lookupSRV(ctx, service, proto, name);
|
|
62090
62034
|
cname = _tuple[0];
|
|
@@ -62096,6 +62040,7 @@ $packages["net"] = (function() {
|
|
|
62096
62040
|
if (!(cname === "") && !isDomainName(cname)) {
|
|
62097
62041
|
return ["", sliceType$8.nil, new DNSError.ptr("SRV header name is invalid", name, "", false, false, false)];
|
|
62098
62042
|
}
|
|
62043
|
+
filteredAddrs = $makeSlice(sliceType$8, 0, addrs.$length);
|
|
62099
62044
|
_ref = addrs;
|
|
62100
62045
|
_i = 0;
|
|
62101
62046
|
while (true) {
|
|
@@ -62106,15 +62051,20 @@ $packages["net"] = (function() {
|
|
|
62106
62051
|
continue;
|
|
62107
62052
|
}
|
|
62108
62053
|
if (!isDomainName(addr.Target)) {
|
|
62109
|
-
|
|
62054
|
+
_i++;
|
|
62055
|
+
continue;
|
|
62110
62056
|
}
|
|
62057
|
+
filteredAddrs = $append(filteredAddrs, addr);
|
|
62111
62058
|
_i++;
|
|
62112
62059
|
}
|
|
62113
|
-
|
|
62060
|
+
if (!((addrs.$length === filteredAddrs.$length))) {
|
|
62061
|
+
return [cname, filteredAddrs, new DNSError.ptr(errMalformedDNSRecordsDetail, name, "", false, false, false)];
|
|
62062
|
+
}
|
|
62063
|
+
return [cname, filteredAddrs, $ifaceNil];
|
|
62114
62064
|
};
|
|
62115
62065
|
Resolver.prototype.LookupSRV = function(ctx, service, proto, name) { return this.$val.LookupSRV(ctx, service, proto, name); };
|
|
62116
62066
|
Resolver.ptr.prototype.LookupMX = function(ctx, name) {
|
|
62117
|
-
var _i, _ref, _tuple, ctx, err, mx, name, r, records;
|
|
62067
|
+
var _i, _ref, _tuple, ctx, err, filteredMX, mx, name, r, records;
|
|
62118
62068
|
r = this;
|
|
62119
62069
|
_tuple = r.lookupMX(ctx, name);
|
|
62120
62070
|
records = _tuple[0];
|
|
@@ -62122,6 +62072,7 @@ $packages["net"] = (function() {
|
|
|
62122
62072
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
62123
62073
|
return [sliceType$9.nil, err];
|
|
62124
62074
|
}
|
|
62075
|
+
filteredMX = $makeSlice(sliceType$9, 0, records.$length);
|
|
62125
62076
|
_ref = records;
|
|
62126
62077
|
_i = 0;
|
|
62127
62078
|
while (true) {
|
|
@@ -62131,16 +62082,21 @@ $packages["net"] = (function() {
|
|
|
62131
62082
|
_i++;
|
|
62132
62083
|
continue;
|
|
62133
62084
|
}
|
|
62134
|
-
if (!isDomainName(mx.Host)) {
|
|
62135
|
-
|
|
62085
|
+
if (!(mx.Host === ".") && !isDomainName(mx.Host)) {
|
|
62086
|
+
_i++;
|
|
62087
|
+
continue;
|
|
62136
62088
|
}
|
|
62089
|
+
filteredMX = $append(filteredMX, mx);
|
|
62137
62090
|
_i++;
|
|
62138
62091
|
}
|
|
62139
|
-
|
|
62092
|
+
if (!((records.$length === filteredMX.$length))) {
|
|
62093
|
+
return [filteredMX, new DNSError.ptr(errMalformedDNSRecordsDetail, name, "", false, false, false)];
|
|
62094
|
+
}
|
|
62095
|
+
return [filteredMX, $ifaceNil];
|
|
62140
62096
|
};
|
|
62141
62097
|
Resolver.prototype.LookupMX = function(ctx, name) { return this.$val.LookupMX(ctx, name); };
|
|
62142
62098
|
Resolver.ptr.prototype.LookupNS = function(ctx, name) {
|
|
62143
|
-
var _i, _ref, _tuple, ctx, err, name, ns, r, records;
|
|
62099
|
+
var _i, _ref, _tuple, ctx, err, filteredNS, name, ns, r, records;
|
|
62144
62100
|
r = this;
|
|
62145
62101
|
_tuple = r.lookupNS(ctx, name);
|
|
62146
62102
|
records = _tuple[0];
|
|
@@ -62148,6 +62104,7 @@ $packages["net"] = (function() {
|
|
|
62148
62104
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
62149
62105
|
return [sliceType$10.nil, err];
|
|
62150
62106
|
}
|
|
62107
|
+
filteredNS = $makeSlice(sliceType$10, 0, records.$length);
|
|
62151
62108
|
_ref = records;
|
|
62152
62109
|
_i = 0;
|
|
62153
62110
|
while (true) {
|
|
@@ -62158,11 +62115,16 @@ $packages["net"] = (function() {
|
|
|
62158
62115
|
continue;
|
|
62159
62116
|
}
|
|
62160
62117
|
if (!isDomainName(ns.Host)) {
|
|
62161
|
-
|
|
62118
|
+
_i++;
|
|
62119
|
+
continue;
|
|
62162
62120
|
}
|
|
62121
|
+
filteredNS = $append(filteredNS, ns);
|
|
62163
62122
|
_i++;
|
|
62164
62123
|
}
|
|
62165
|
-
|
|
62124
|
+
if (!((records.$length === filteredNS.$length))) {
|
|
62125
|
+
return [filteredNS, new DNSError.ptr(errMalformedDNSRecordsDetail, name, "", false, false, false)];
|
|
62126
|
+
}
|
|
62127
|
+
return [filteredNS, $ifaceNil];
|
|
62166
62128
|
};
|
|
62167
62129
|
Resolver.prototype.LookupNS = function(ctx, name) { return this.$val.LookupNS(ctx, name); };
|
|
62168
62130
|
Resolver.ptr.prototype.LookupTXT = function(ctx, name) {
|
|
@@ -62172,7 +62134,7 @@ $packages["net"] = (function() {
|
|
|
62172
62134
|
};
|
|
62173
62135
|
Resolver.prototype.LookupTXT = function(ctx, name) { return this.$val.LookupTXT(ctx, name); };
|
|
62174
62136
|
Resolver.ptr.prototype.LookupAddr = function(ctx, addr) {
|
|
62175
|
-
var _i, _ref, _tuple, addr, ctx, err, name, names, r;
|
|
62137
|
+
var _i, _ref, _tuple, addr, ctx, err, filteredNames, name, names, r;
|
|
62176
62138
|
r = this;
|
|
62177
62139
|
_tuple = r.lookupAddr(ctx, addr);
|
|
62178
62140
|
names = _tuple[0];
|
|
@@ -62180,17 +62142,21 @@ $packages["net"] = (function() {
|
|
|
62180
62142
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
62181
62143
|
return [sliceType.nil, err];
|
|
62182
62144
|
}
|
|
62145
|
+
filteredNames = $makeSlice(sliceType, 0, names.$length);
|
|
62183
62146
|
_ref = names;
|
|
62184
62147
|
_i = 0;
|
|
62185
62148
|
while (true) {
|
|
62186
62149
|
if (!(_i < _ref.$length)) { break; }
|
|
62187
62150
|
name = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
62188
|
-
if (
|
|
62189
|
-
|
|
62151
|
+
if (isDomainName(name)) {
|
|
62152
|
+
filteredNames = $append(filteredNames, name);
|
|
62190
62153
|
}
|
|
62191
62154
|
_i++;
|
|
62192
62155
|
}
|
|
62193
|
-
|
|
62156
|
+
if (!((names.$length === filteredNames.$length))) {
|
|
62157
|
+
return [filteredNames, new DNSError.ptr(errMalformedDNSRecordsDetail, addr, "", false, false, false)];
|
|
62158
|
+
}
|
|
62159
|
+
return [filteredNames, $ifaceNil];
|
|
62194
62160
|
};
|
|
62195
62161
|
Resolver.prototype.LookupAddr = function(ctx, addr) { return this.$val.LookupAddr(ctx, addr); };
|
|
62196
62162
|
lookupProtocol = function(ctx, name) {
|
|
@@ -65079,6 +65045,7 @@ $packages["net"] = (function() {
|
|
|
65079
65045
|
protocols = $makeMap($String.keyFor, [{ k: "icmp", v: 1 }, { k: "igmp", v: 2 }, { k: "tcp", v: 6 }, { k: "udp", v: 17 }, { k: "ipv6-icmp", v: 58 }]);
|
|
65080
65046
|
services = $makeMap($String.keyFor, [{ k: "udp", v: $makeMap($String.keyFor, [{ k: "domain", v: 53 }]) }, { k: "tcp", v: $makeMap($String.keyFor, [{ k: "ftp", v: 21 }, { k: "ftps", v: 990 }, { k: "gopher", v: 70 }, { k: "http", v: 80 }, { k: "https", v: 443 }, { k: "imap2", v: 143 }, { k: "imap3", v: 220 }, { k: "imaps", v: 993 }, { k: "pop3", v: 110 }, { k: "pop3s", v: 995 }, { k: "smtp", v: 25 }, { k: "ssh", v: 22 }, { k: "telnet", v: 23 }]) }]);
|
|
65081
65047
|
$pkg.DefaultResolver = new Resolver.ptr(false, false, $throwNilPointerError, new singleflight.Group.ptr(new sync.Mutex.ptr(0, 0), false));
|
|
65048
|
+
errMalformedDNSRecordsDetail = "DNS response contained records which contain invalid names";
|
|
65082
65049
|
errNoSuitableAddress = errors.New("no suitable address found");
|
|
65083
65050
|
errMissingAddress = errors.New("missing address");
|
|
65084
65051
|
errCanceled = errors.New("operation was canceled");
|
|
@@ -103880,8 +103847,8 @@ $packages["crypto/tls"] = (function() {
|
|
|
103880
103847
|
};
|
|
103881
103848
|
rsaKeyAgreement.prototype.processServerKeyExchange = function(config, clientHello, serverHello, cert, skx) { return this.$val.processServerKeyExchange(config, clientHello, serverHello, cert, skx); };
|
|
103882
103849
|
rsaKeyAgreement.ptr.prototype.generateClientKeyExchange = function(config, clientHello, cert) {
|
|
103883
|
-
var _r, _r$1, _tuple, _tuple$1, cert, ckx, clientHello, config, encrypted, err, ka, preMasterSecret, x, x$1, $s, $r;
|
|
103884
|
-
/* */ $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; cert = $f.cert; ckx = $f.ckx; clientHello = $f.clientHello; config = $f.config; encrypted = $f.encrypted; err = $f.err; ka = $f.ka; preMasterSecret = $f.preMasterSecret; x = $f.x; x$1 = $f.x$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
103850
|
+
var _r, _r$1, _tuple, _tuple$1, _tuple$2, cert, ckx, clientHello, config, encrypted, err, ka, ok, preMasterSecret, rsaKey, x, x$1, $s, $r;
|
|
103851
|
+
/* */ $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; cert = $f.cert; ckx = $f.ckx; clientHello = $f.clientHello; config = $f.config; encrypted = $f.encrypted; err = $f.err; ka = $f.ka; ok = $f.ok; preMasterSecret = $f.preMasterSecret; rsaKey = $f.rsaKey; x = $f.x; x$1 = $f.x$1; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
103885
103852
|
ka = this;
|
|
103886
103853
|
preMasterSecret = $makeSlice(sliceType$5, 48);
|
|
103887
103854
|
(0 >= preMasterSecret.$length ? ($throwRuntimeError("index out of range"), undefined) : preMasterSecret.$array[preMasterSecret.$offset + 0] = (((clientHello.vers >>> 8 << 16 >>> 16) << 24 >>> 24)));
|
|
@@ -103892,10 +103859,16 @@ $packages["crypto/tls"] = (function() {
|
|
|
103892
103859
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
103893
103860
|
$s = -1; return [sliceType$5.nil, ptrType$8.nil, err];
|
|
103894
103861
|
}
|
|
103895
|
-
|
|
103896
|
-
|
|
103897
|
-
|
|
103898
|
-
|
|
103862
|
+
_tuple$1 = $assertType(cert.PublicKey, ptrType$5, true);
|
|
103863
|
+
rsaKey = _tuple$1[0];
|
|
103864
|
+
ok = _tuple$1[1];
|
|
103865
|
+
if (!ok) {
|
|
103866
|
+
$s = -1; return [sliceType$5.nil, ptrType$8.nil, errors.New("tls: server certificate contains incorrect key type for selected ciphersuite")];
|
|
103867
|
+
}
|
|
103868
|
+
_r$1 = rsa.EncryptPKCS1v15(config.rand(), rsaKey, preMasterSecret); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
103869
|
+
_tuple$2 = _r$1;
|
|
103870
|
+
encrypted = _tuple$2[0];
|
|
103871
|
+
err = _tuple$2[1];
|
|
103899
103872
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
103900
103873
|
$s = -1; return [sliceType$5.nil, ptrType$8.nil, err];
|
|
103901
103874
|
}
|
|
@@ -103905,7 +103878,7 @@ $packages["crypto/tls"] = (function() {
|
|
|
103905
103878
|
(x$1 = ckx.ciphertext, (1 >= x$1.$length ? ($throwRuntimeError("index out of range"), undefined) : x$1.$array[x$1.$offset + 1] = ((encrypted.$length << 24 >>> 24))));
|
|
103906
103879
|
$copySlice($subslice(ckx.ciphertext, 2), encrypted);
|
|
103907
103880
|
$s = -1; return [preMasterSecret, ckx, $ifaceNil];
|
|
103908
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: rsaKeyAgreement.ptr.prototype.generateClientKeyExchange }; } $f._r = _r; $f._r$1 = _r$1; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f.cert = cert; $f.ckx = ckx; $f.clientHello = clientHello; $f.config = config; $f.encrypted = encrypted; $f.err = err; $f.ka = ka; $f.preMasterSecret = preMasterSecret; $f.x = x; $f.x$1 = x$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
103881
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: rsaKeyAgreement.ptr.prototype.generateClientKeyExchange }; } $f._r = _r; $f._r$1 = _r$1; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f.cert = cert; $f.ckx = ckx; $f.clientHello = clientHello; $f.config = config; $f.encrypted = encrypted; $f.err = err; $f.ka = ka; $f.ok = ok; $f.preMasterSecret = preMasterSecret; $f.rsaKey = rsaKey; $f.x = x; $f.x$1 = x$1; $f.$s = $s; $f.$r = $r; return $f;
|
|
103909
103882
|
};
|
|
103910
103883
|
rsaKeyAgreement.prototype.generateClientKeyExchange = function(config, clientHello, cert) { return this.$val.generateClientKeyExchange(config, clientHello, cert); };
|
|
103911
103884
|
sha1Hash = function(slices) {
|
|
@@ -114951,7 +114924,7 @@ $packages["vendor/golang.org/x/net/http2/hpack"] = (function() {
|
|
|
114951
114924
|
return $pkg;
|
|
114952
114925
|
})();
|
|
114953
114926
|
$packages["net/http"] = (function() {
|
|
114954
|
-
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;
|
|
114927
|
+
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;
|
|
114955
114928
|
bufio = $packages["bufio"];
|
|
114956
114929
|
bytes = $packages["bytes"];
|
|
114957
114930
|
gzip = $packages["compress/gzip"];
|
|
@@ -115893,10 +115866,10 @@ $packages["net/http"] = (function() {
|
|
|
115893
115866
|
this.state = 0;
|
|
115894
115867
|
this.bytes = new $Int64(0, 0);
|
|
115895
115868
|
this.subtreeBytes = new $Int64(0, 0);
|
|
115896
|
-
this.parent = ptrType$
|
|
115897
|
-
this.kids = ptrType$
|
|
115898
|
-
this.prev = ptrType$
|
|
115899
|
-
this.next = ptrType$
|
|
115869
|
+
this.parent = ptrType$83.nil;
|
|
115870
|
+
this.kids = ptrType$83.nil;
|
|
115871
|
+
this.prev = ptrType$83.nil;
|
|
115872
|
+
this.next = ptrType$83.nil;
|
|
115900
115873
|
return;
|
|
115901
115874
|
}
|
|
115902
115875
|
this.q = q_;
|
|
@@ -115914,7 +115887,7 @@ $packages["net/http"] = (function() {
|
|
|
115914
115887
|
http2priorityWriteScheduler = $pkg.http2priorityWriteScheduler = $newType(0, $kindStruct, "http.http2priorityWriteScheduler", true, "net/http", false, function(root_, nodes_, maxID_, closedNodes_, idleNodes_, maxClosedNodesInTree_, maxIdleNodesInTree_, writeThrottleLimit_, enableWriteThrottle_, tmp_, queuePool_) {
|
|
115915
115888
|
this.$val = this;
|
|
115916
115889
|
if (arguments.length === 0) {
|
|
115917
|
-
this.root = new http2priorityNode.ptr(new http2writeQueue.ptr(sliceType$24.nil), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), ptrType$
|
|
115890
|
+
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);
|
|
115918
115891
|
this.nodes = false;
|
|
115919
115892
|
this.maxID = 0;
|
|
115920
115893
|
this.closedNodes = sliceType$25.nil;
|
|
@@ -116128,8 +116101,8 @@ $packages["net/http"] = (function() {
|
|
|
116128
116101
|
this.remoteAddr = "";
|
|
116129
116102
|
this.tlsState = ptrType$21.nil;
|
|
116130
116103
|
this.werr = $ifaceNil;
|
|
116131
|
-
this.r = ptrType$
|
|
116132
|
-
this.bufr = ptrType$
|
|
116104
|
+
this.r = ptrType$94.nil;
|
|
116105
|
+
this.bufr = ptrType$77.nil;
|
|
116133
116106
|
this.bufw = ptrType$9.nil;
|
|
116134
116107
|
this.lastMethod = "";
|
|
116135
116108
|
this.curReq = new atomic.Value.ptr($ifaceNil);
|
|
@@ -116156,7 +116129,7 @@ $packages["net/http"] = (function() {
|
|
|
116156
116129
|
chunkWriter = $pkg.chunkWriter = $newType(0, $kindStruct, "http.chunkWriter", true, "net/http", false, function(res_, header_, wroteHeader_, chunking_) {
|
|
116157
116130
|
this.$val = this;
|
|
116158
116131
|
if (arguments.length === 0) {
|
|
116159
|
-
this.res = ptrType$
|
|
116132
|
+
this.res = ptrType$95.nil;
|
|
116160
116133
|
this.header = false;
|
|
116161
116134
|
this.wroteHeader = false;
|
|
116162
116135
|
this.chunking = false;
|
|
@@ -116170,7 +116143,7 @@ $packages["net/http"] = (function() {
|
|
|
116170
116143
|
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_) {
|
|
116171
116144
|
this.$val = this;
|
|
116172
116145
|
if (arguments.length === 0) {
|
|
116173
|
-
this.conn = ptrType$
|
|
116146
|
+
this.conn = ptrType$98.nil;
|
|
116174
116147
|
this.req = ptrType$6.nil;
|
|
116175
116148
|
this.reqBody = $ifaceNil;
|
|
116176
116149
|
this.cancelCtx = $throwNilPointerError;
|
|
@@ -116181,7 +116154,7 @@ $packages["net/http"] = (function() {
|
|
|
116181
116154
|
this.canWriteContinue = 0;
|
|
116182
116155
|
this.writeContinueMu = new sync.Mutex.ptr(0, 0);
|
|
116183
116156
|
this.w = ptrType$9.nil;
|
|
116184
|
-
this.cw = new chunkWriter.ptr(ptrType$
|
|
116157
|
+
this.cw = new chunkWriter.ptr(ptrType$95.nil, false, false, false);
|
|
116185
116158
|
this.handlerHeader = false;
|
|
116186
116159
|
this.calledHeader = false;
|
|
116187
116160
|
this.written = new $Int64(0, 0);
|
|
@@ -116251,11 +116224,11 @@ $packages["net/http"] = (function() {
|
|
|
116251
116224
|
connReader = $pkg.connReader = $newType(0, $kindStruct, "http.connReader", true, "net/http", false, function(conn_, mu_, hasByte_, byteBuf_, cond_, inRead_, aborted_, remain_) {
|
|
116252
116225
|
this.$val = this;
|
|
116253
116226
|
if (arguments.length === 0) {
|
|
116254
|
-
this.conn = ptrType$
|
|
116227
|
+
this.conn = ptrType$98.nil;
|
|
116255
116228
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
116256
116229
|
this.hasByte = false;
|
|
116257
116230
|
this.byteBuf = arrayType$6.zero();
|
|
116258
|
-
this.cond = ptrType$
|
|
116231
|
+
this.cond = ptrType$73.nil;
|
|
116259
116232
|
this.inRead = false;
|
|
116260
116233
|
this.aborted = false;
|
|
116261
116234
|
this.remain = new $Int64(0, 0);
|
|
@@ -116273,7 +116246,7 @@ $packages["net/http"] = (function() {
|
|
|
116273
116246
|
expectContinueReader = $pkg.expectContinueReader = $newType(0, $kindStruct, "http.expectContinueReader", true, "net/http", false, function(resp_, readCloser_, closed_, sawEOF_) {
|
|
116274
116247
|
this.$val = this;
|
|
116275
116248
|
if (arguments.length === 0) {
|
|
116276
|
-
this.resp = ptrType$
|
|
116249
|
+
this.resp = ptrType$95.nil;
|
|
116277
116250
|
this.readCloser = $ifaceNil;
|
|
116278
116251
|
this.closed = 0;
|
|
116279
116252
|
this.sawEOF = 0;
|
|
@@ -116427,7 +116400,7 @@ $packages["net/http"] = (function() {
|
|
|
116427
116400
|
this.$val = this;
|
|
116428
116401
|
if (arguments.length === 0) {
|
|
116429
116402
|
this.ctx = $ifaceNil;
|
|
116430
|
-
this.c = ptrType$
|
|
116403
|
+
this.c = ptrType$76.nil;
|
|
116431
116404
|
this.h = new serverHandler.ptr(ptrType$51.nil);
|
|
116432
116405
|
return;
|
|
116433
116406
|
}
|
|
@@ -116448,7 +116421,7 @@ $packages["net/http"] = (function() {
|
|
|
116448
116421
|
checkConnErrorWriter = $pkg.checkConnErrorWriter = $newType(0, $kindStruct, "http.checkConnErrorWriter", true, "net/http", false, function(c_) {
|
|
116449
116422
|
this.$val = this;
|
|
116450
116423
|
if (arguments.length === 0) {
|
|
116451
|
-
this.c = ptrType$
|
|
116424
|
+
this.c = ptrType$98.nil;
|
|
116452
116425
|
return;
|
|
116453
116426
|
}
|
|
116454
116427
|
this.c = c_;
|
|
@@ -116580,7 +116553,7 @@ $packages["net/http"] = (function() {
|
|
|
116580
116553
|
if (arguments.length === 0) {
|
|
116581
116554
|
this.src = $ifaceNil;
|
|
116582
116555
|
this.hdr = $ifaceNil;
|
|
116583
|
-
this.r = ptrType$
|
|
116556
|
+
this.r = ptrType$77.nil;
|
|
116584
116557
|
this.closing = false;
|
|
116585
116558
|
this.doEarlyClose = false;
|
|
116586
116559
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
@@ -116604,7 +116577,7 @@ $packages["net/http"] = (function() {
|
|
|
116604
116577
|
bodyLocked = $pkg.bodyLocked = $newType(0, $kindStruct, "http.bodyLocked", true, "net/http", false, function(b_) {
|
|
116605
116578
|
this.$val = this;
|
|
116606
116579
|
if (arguments.length === 0) {
|
|
116607
|
-
this.b = ptrType$
|
|
116580
|
+
this.b = ptrType$97.nil;
|
|
116608
116581
|
return;
|
|
116609
116582
|
}
|
|
116610
116583
|
this.b = b_;
|
|
@@ -116726,41 +116699,41 @@ $packages["net/http"] = (function() {
|
|
|
116726
116699
|
ptrType$70 = $ptrType(http2responseWriterState);
|
|
116727
116700
|
ptrType$71 = $ptrType(http2sorter);
|
|
116728
116701
|
ptrType$72 = $ptrType(PushOptions);
|
|
116729
|
-
ptrType$
|
|
116730
|
-
ptrType$
|
|
116702
|
+
ptrType$73 = $ptrType(sync.Cond);
|
|
116703
|
+
ptrType$76 = $ptrType(tls.Conn);
|
|
116704
|
+
ptrType$77 = $ptrType(bufio.Reader);
|
|
116731
116705
|
sliceType$23 = $sliceType(http2Setting);
|
|
116732
|
-
ptrType$
|
|
116733
|
-
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
116734
|
-
ptrType$80 = $ptrType(http2writeQueue);
|
|
116735
|
-
ptrType$81 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
116736
|
-
ptrType$82 = $ptrType(http2priorityNode);
|
|
116737
|
-
sliceType$25 = $sliceType(ptrType$82);
|
|
116738
|
-
ptrType$83 = $ptrType(http2writeQueuePool);
|
|
116739
|
-
ptrType$84 = $ptrType(sliceType$25);
|
|
116740
|
-
ptrType$85 = $ptrType(headerSorter);
|
|
116741
|
-
ptrType$86 = $ptrType(multipart.Reader);
|
|
116742
|
-
ptrType$87 = $ptrType(bytes.Reader);
|
|
116743
|
-
ptrType$88 = $ptrType(strings.Reader);
|
|
116744
|
-
ptrType$89 = $ptrType(textproto.Reader);
|
|
116745
|
-
ptrType$90 = $ptrType(maxBytesReader);
|
|
116706
|
+
ptrType$78 = $ptrType(Header);
|
|
116746
116707
|
arrayType$6 = $arrayType($Uint8, 1);
|
|
116708
|
+
sliceType$24 = $sliceType(http2FrameWriteRequest);
|
|
116709
|
+
ptrType$81 = $ptrType(http2writeQueue);
|
|
116710
|
+
ptrType$82 = $ptrType(http2PriorityWriteSchedulerConfig);
|
|
116711
|
+
ptrType$83 = $ptrType(http2priorityNode);
|
|
116712
|
+
sliceType$25 = $sliceType(ptrType$83);
|
|
116713
|
+
ptrType$84 = $ptrType(http2writeQueuePool);
|
|
116714
|
+
ptrType$85 = $ptrType(sliceType$25);
|
|
116715
|
+
ptrType$86 = $ptrType(headerSorter);
|
|
116716
|
+
ptrType$87 = $ptrType(multipart.Reader);
|
|
116717
|
+
ptrType$88 = $ptrType(bytes.Reader);
|
|
116718
|
+
ptrType$89 = $ptrType(strings.Reader);
|
|
116719
|
+
ptrType$90 = $ptrType(textproto.Reader);
|
|
116720
|
+
ptrType$91 = $ptrType(maxBytesReader);
|
|
116747
116721
|
sliceType$26 = $sliceType(io.Reader);
|
|
116748
116722
|
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: ""}]);
|
|
116749
|
-
ptrType$
|
|
116750
|
-
ptrType$
|
|
116751
|
-
ptrType$
|
|
116723
|
+
ptrType$92 = $ptrType(bufio.ReadWriter);
|
|
116724
|
+
ptrType$93 = $ptrType($Int32);
|
|
116725
|
+
ptrType$94 = $ptrType(connReader);
|
|
116752
116726
|
structType$2 = $structType("net/http", [{prop: "atomic", name: "atomic", embedded: false, exported: false, typ: $Uint64, tag: ""}]);
|
|
116753
|
-
ptrType$
|
|
116754
|
-
ptrType$
|
|
116755
|
-
ptrType$
|
|
116756
|
-
ptrType$
|
|
116727
|
+
ptrType$95 = $ptrType(response);
|
|
116728
|
+
ptrType$96 = $ptrType(sync.Pool);
|
|
116729
|
+
ptrType$97 = $ptrType(body);
|
|
116730
|
+
ptrType$98 = $ptrType(conn);
|
|
116757
116731
|
arrayType$7 = $arrayType($Uint8, 10);
|
|
116758
116732
|
arrayType$8 = $arrayType($Uint8, 3);
|
|
116759
116733
|
sliceType$27 = $sliceType($Uintptr);
|
|
116760
|
-
ptrType$
|
|
116761
|
-
ptrType$
|
|
116762
|
-
ptrType$
|
|
116763
|
-
ptrType$101 = $ptrType(tls.Conn);
|
|
116734
|
+
ptrType$99 = $ptrType(runtime.Func);
|
|
116735
|
+
ptrType$100 = $ptrType(expectContinueReader);
|
|
116736
|
+
ptrType$101 = $ptrType($Uint64);
|
|
116764
116737
|
arrayType$9 = $arrayType($Uint8, 5);
|
|
116765
116738
|
ptrType$102 = $ptrType(net.Listener);
|
|
116766
116739
|
ptrType$105 = $ptrType(transferWriter);
|
|
@@ -116791,11 +116764,11 @@ $packages["net/http"] = (function() {
|
|
|
116791
116764
|
ptrType$123 = $ptrType(http2writeGoAway);
|
|
116792
116765
|
funcType$12 = $funcType([], [$Uint32, $error], false);
|
|
116793
116766
|
ptrType$124 = $ptrType(http2FrameWriteRequest);
|
|
116794
|
-
funcType$13 = $funcType([ptrType$
|
|
116767
|
+
funcType$13 = $funcType([ptrType$83, $Bool], [$Bool], false);
|
|
116795
116768
|
ptrType$125 = $ptrType(http2priorityWriteScheduler);
|
|
116796
|
-
mapType$10 = $mapType($Uint32, ptrType$
|
|
116769
|
+
mapType$10 = $mapType($Uint32, ptrType$83);
|
|
116797
116770
|
ptrType$126 = $ptrType(http2randomWriteScheduler);
|
|
116798
|
-
mapType$11 = $mapType($Uint32, ptrType$
|
|
116771
|
+
mapType$11 = $mapType($Uint32, ptrType$81);
|
|
116799
116772
|
mapType$12 = $mapType($String, $Bool);
|
|
116800
116773
|
ptrType$127 = $ptrType(contextKey);
|
|
116801
116774
|
ptrType$128 = $ptrType(ProtocolError);
|
|
@@ -116804,19 +116777,19 @@ $packages["net/http"] = (function() {
|
|
|
116804
116777
|
ptrType$132 = $ptrType(redirectHandler);
|
|
116805
116778
|
ptrType$133 = $ptrType(ServeMux);
|
|
116806
116779
|
mapType$13 = $mapType($String, muxEntry);
|
|
116807
|
-
funcType$15 = $funcType([ptrType$51, ptrType$
|
|
116780
|
+
funcType$15 = $funcType([ptrType$51, ptrType$76, Handler], [], false);
|
|
116808
116781
|
mapType$14 = $mapType($String, funcType$15);
|
|
116809
116782
|
funcType$16 = $funcType([net.Conn, ConnState], [], false);
|
|
116810
116783
|
funcType$17 = $funcType([net.Listener], [context.Context], false);
|
|
116811
116784
|
funcType$18 = $funcType([context.Context, net.Conn], [context.Context], false);
|
|
116812
116785
|
mapType$15 = $mapType(ptrType$102, structType);
|
|
116813
|
-
mapType$16 = $mapType(ptrType$
|
|
116786
|
+
mapType$16 = $mapType(ptrType$98, structType);
|
|
116814
116787
|
ptrType$135 = $ptrType(onceCloseListener);
|
|
116815
116788
|
ptrType$136 = $ptrType(loggingConn);
|
|
116816
116789
|
ptrType$137 = $ptrType(exactSig);
|
|
116817
116790
|
ptrType$138 = $ptrType(maskedSig);
|
|
116818
116791
|
ptrType$141 = $ptrType(byteReader);
|
|
116819
|
-
chanType$
|
|
116792
|
+
chanType$11 = $chanType(readResult, false, false);
|
|
116820
116793
|
ptrType$142 = $ptrType(transferReader);
|
|
116821
116794
|
basicAuth = function(username, password) {
|
|
116822
116795
|
var auth, password, username;
|
|
@@ -117372,6 +117345,60 @@ $packages["net/http"] = (function() {
|
|
|
117372
117345
|
$s = -1; return _r$2 < 0;
|
|
117373
117346
|
/* */ } return; } if ($f === undefined) { $f = { $blk: isCookieNameValid }; } $f._r$2 = _r$2; $f.raw = raw; $f.$s = $s; $f.$r = $r; return $f;
|
|
117374
117347
|
};
|
|
117348
|
+
http2asciiEqualFold = function(s, t) {
|
|
117349
|
+
var i, s, t;
|
|
117350
|
+
if (!((s.length === t.length))) {
|
|
117351
|
+
return false;
|
|
117352
|
+
}
|
|
117353
|
+
i = 0;
|
|
117354
|
+
while (true) {
|
|
117355
|
+
if (!(i < s.length)) { break; }
|
|
117356
|
+
if (!((http2lower(s.charCodeAt(i)) === http2lower(t.charCodeAt(i))))) {
|
|
117357
|
+
return false;
|
|
117358
|
+
}
|
|
117359
|
+
i = i + (1) >> 0;
|
|
117360
|
+
}
|
|
117361
|
+
return true;
|
|
117362
|
+
};
|
|
117363
|
+
http2lower = function(b) {
|
|
117364
|
+
var b;
|
|
117365
|
+
if (65 <= b && b <= 90) {
|
|
117366
|
+
return b + 32 << 24 >>> 24;
|
|
117367
|
+
}
|
|
117368
|
+
return b;
|
|
117369
|
+
};
|
|
117370
|
+
http2isASCIIPrint = function(s) {
|
|
117371
|
+
var i, s;
|
|
117372
|
+
i = 0;
|
|
117373
|
+
while (true) {
|
|
117374
|
+
if (!(i < s.length)) { break; }
|
|
117375
|
+
if (s.charCodeAt(i) < 32 || s.charCodeAt(i) > 126) {
|
|
117376
|
+
return false;
|
|
117377
|
+
}
|
|
117378
|
+
i = i + (1) >> 0;
|
|
117379
|
+
}
|
|
117380
|
+
return true;
|
|
117381
|
+
};
|
|
117382
|
+
http2asciiToLower = function(s) {
|
|
117383
|
+
var _r$2, _tmp, _tmp$1, _tmp$2, _tmp$3, lower, ok, s, $s, $r;
|
|
117384
|
+
/* */ $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:
|
|
117385
|
+
lower = "";
|
|
117386
|
+
ok = false;
|
|
117387
|
+
if (!http2isASCIIPrint(s)) {
|
|
117388
|
+
_tmp = "";
|
|
117389
|
+
_tmp$1 = false;
|
|
117390
|
+
lower = _tmp;
|
|
117391
|
+
ok = _tmp$1;
|
|
117392
|
+
$s = -1; return [lower, ok];
|
|
117393
|
+
}
|
|
117394
|
+
_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; }
|
|
117395
|
+
_tmp$2 = _r$2;
|
|
117396
|
+
_tmp$3 = true;
|
|
117397
|
+
lower = _tmp$2;
|
|
117398
|
+
ok = _tmp$3;
|
|
117399
|
+
$s = -1; return [lower, ok];
|
|
117400
|
+
/* */ } 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;
|
|
117401
|
+
};
|
|
117375
117402
|
http2isBadCipher = function(cipher) {
|
|
117376
117403
|
var _1, cipher;
|
|
117377
117404
|
_1 = cipher;
|
|
@@ -118452,7 +118479,7 @@ $packages["net/http"] = (function() {
|
|
|
118452
118479
|
return [_, err];
|
|
118453
118480
|
}
|
|
118454
118481
|
}
|
|
118455
|
-
if ((p.$length - ((padLength >> 0)) >> 0)
|
|
118482
|
+
if ((p.$length - ((padLength >> 0)) >> 0) < 0) {
|
|
118456
118483
|
_tmp$6 = $ifaceNil;
|
|
118457
118484
|
_tmp$7 = (x$5 = http2streamError(fh.StreamID, 1), new x$5.constructor.elem(x$5));
|
|
118458
118485
|
_ = _tmp$6;
|
|
@@ -119280,18 +119307,27 @@ $packages["net/http"] = (function() {
|
|
|
119280
119307
|
/* */ } 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;
|
|
119281
119308
|
};
|
|
119282
119309
|
http2lowerHeader = function(v) {
|
|
119283
|
-
var _entry, _r$2, _tuple, ok, s, v, $s, $r;
|
|
119284
|
-
/* */ $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:
|
|
119310
|
+
var _entry, _r$2, _tmp, _tmp$1, _tuple, _tuple$1, ascii, lower, ok, s, v, $s, $r;
|
|
119311
|
+
/* */ $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:
|
|
119312
|
+
lower = "";
|
|
119313
|
+
ascii = false;
|
|
119285
119314
|
$r = http2buildCommonHeaderMapsOnce(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
119286
119315
|
_tuple = (_entry = http2commonLowerHeader[$String.keyFor(v)], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
119287
119316
|
s = _tuple[0];
|
|
119288
119317
|
ok = _tuple[1];
|
|
119289
119318
|
if (ok) {
|
|
119290
|
-
|
|
119319
|
+
_tmp = s;
|
|
119320
|
+
_tmp$1 = true;
|
|
119321
|
+
lower = _tmp;
|
|
119322
|
+
ascii = _tmp$1;
|
|
119323
|
+
$s = -1; return [lower, ascii];
|
|
119291
119324
|
}
|
|
119292
|
-
_r$2 =
|
|
119293
|
-
$
|
|
119294
|
-
|
|
119325
|
+
_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; }
|
|
119326
|
+
_tuple$1 = _r$2;
|
|
119327
|
+
lower = _tuple$1[0];
|
|
119328
|
+
ascii = _tuple$1[1];
|
|
119329
|
+
$s = -1; return [lower, ascii];
|
|
119330
|
+
/* */ } 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;
|
|
119295
119331
|
};
|
|
119296
119332
|
init = function() {
|
|
119297
119333
|
var _r$2, e, $s, $r;
|
|
@@ -119858,8 +119894,8 @@ $packages["net/http"] = (function() {
|
|
|
119858
119894
|
};
|
|
119859
119895
|
http2serverInternalState.prototype.startGracefulShutdown = function() { return this.$val.startGracefulShutdown(); };
|
|
119860
119896
|
http2ConfigureServer = function(s, conf) {
|
|
119861
|
-
var _1, _i,
|
|
119862
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _i = $f._i;
|
|
119897
|
+
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;
|
|
119898
|
+
/* */ $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:
|
|
119863
119899
|
conf = [conf];
|
|
119864
119900
|
if (s === ptrType$51.nil) {
|
|
119865
119901
|
$panic(new $String("nil *http.Server"));
|
|
@@ -119919,21 +119955,12 @@ $packages["net/http"] = (function() {
|
|
|
119919
119955
|
/* } */ case 12:
|
|
119920
119956
|
/* } */ case 4:
|
|
119921
119957
|
s.TLSConfig.PreferServerCipherSuites = true;
|
|
119922
|
-
|
|
119923
|
-
_ref$1 = s.TLSConfig.NextProtos;
|
|
119924
|
-
_i$1 = 0;
|
|
119925
|
-
while (true) {
|
|
119926
|
-
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
119927
|
-
p = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
119928
|
-
if (p === "h2") {
|
|
119929
|
-
haveNPN = true;
|
|
119930
|
-
break;
|
|
119931
|
-
}
|
|
119932
|
-
_i$1++;
|
|
119933
|
-
}
|
|
119934
|
-
if (!haveNPN) {
|
|
119958
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "h2")) {
|
|
119935
119959
|
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "h2");
|
|
119936
119960
|
}
|
|
119961
|
+
if (!http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1")) {
|
|
119962
|
+
s.TLSConfig.NextProtos = $append(s.TLSConfig.NextProtos, "http/1.1");
|
|
119963
|
+
}
|
|
119937
119964
|
if (s.TLSNextProto === false) {
|
|
119938
119965
|
s.TLSNextProto = $makeMap($String.keyFor, []);
|
|
119939
119966
|
}
|
|
@@ -119961,7 +119988,7 @@ $packages["net/http"] = (function() {
|
|
|
119961
119988
|
}; })(conf);
|
|
119962
119989
|
_key = "h2"; (s.TLSNextProto || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: protoHandler };
|
|
119963
119990
|
$s = -1; return $ifaceNil;
|
|
119964
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2ConfigureServer }; } $f._1 = _1; $f._i = _i; $f.
|
|
119991
|
+
/* */ } 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;
|
|
119965
119992
|
};
|
|
119966
119993
|
http2ServeConnOpts.ptr.prototype.context = function() {
|
|
119967
119994
|
var o;
|
|
@@ -120321,7 +120348,9 @@ $packages["net/http"] = (function() {
|
|
|
120321
120348
|
}
|
|
120322
120349
|
_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; }
|
|
120323
120350
|
cv = _r$2;
|
|
120324
|
-
|
|
120351
|
+
if ($keys(sc.canonHeader).length < 32) {
|
|
120352
|
+
_key = v; (sc.canonHeader || $throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(_key)] = { k: _key, v: cv };
|
|
120353
|
+
}
|
|
120325
120354
|
$s = -1; return cv;
|
|
120326
120355
|
/* */ } 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;
|
|
120327
120356
|
};
|
|
@@ -120434,8 +120463,8 @@ $packages["net/http"] = (function() {
|
|
|
120434
120463
|
};
|
|
120435
120464
|
http2serverConn.prototype.notePanic = function() { return this.$val.notePanic(); };
|
|
120436
120465
|
http2serverConn.ptr.prototype.serve = function() {
|
|
120437
|
-
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;
|
|
120438
|
-
/* */ $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);
|
|
120466
|
+
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;
|
|
120467
|
+
/* */ $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);
|
|
120439
120468
|
sc = this;
|
|
120440
120469
|
$r = sc.serveG.check(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120441
120470
|
$deferred.push([$methodVal(sc, "notePanic"), []]);
|
|
@@ -120510,13 +120539,27 @@ $packages["net/http"] = (function() {
|
|
|
120510
120539
|
$s = 25; continue;
|
|
120511
120540
|
/* } else if (_selection[0] === 2) { */ case 22:
|
|
120512
120541
|
res$1 = $clone(_selection[1][0], http2readFrameResult);
|
|
120513
|
-
|
|
120514
|
-
/* */ if (!_r$6) { $s = 31; continue; }
|
|
120542
|
+
/* */ if (sc.writingFrameAsync) { $s = 31; continue; }
|
|
120515
120543
|
/* */ $s = 32; continue;
|
|
120516
|
-
/* if (
|
|
120517
|
-
$
|
|
120544
|
+
/* if (sc.writingFrameAsync) { */ case 31:
|
|
120545
|
+
_selection$1 = $select([[sc.wroteFrameCh], []]);
|
|
120546
|
+
/* */ if (_selection$1[0] === 0) { $s = 33; continue; }
|
|
120547
|
+
/* */ if (_selection$1[0] === 1) { $s = 34; continue; }
|
|
120548
|
+
/* */ $s = 35; continue;
|
|
120549
|
+
/* if (_selection$1[0] === 0) { */ case 33:
|
|
120550
|
+
wroteRes = $clone(_selection$1[1][0], http2frameWriteResult);
|
|
120551
|
+
$r = sc.wroteFrame($clone(wroteRes, http2frameWriteResult)); /* */ $s = 36; case 36: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120552
|
+
$s = 35; continue;
|
|
120553
|
+
/* } else if (_selection$1[0] === 1) { */ case 34:
|
|
120554
|
+
/* } */ case 35:
|
|
120518
120555
|
/* } */ case 32:
|
|
120519
|
-
$
|
|
120556
|
+
_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; }
|
|
120557
|
+
/* */ if (!_r$6) { $s = 37; continue; }
|
|
120558
|
+
/* */ $s = 38; continue;
|
|
120559
|
+
/* if (!_r$6) { */ case 37:
|
|
120560
|
+
$s = -1; return;
|
|
120561
|
+
/* } */ case 38:
|
|
120562
|
+
$r = res$1.readMore(); /* */ $s = 40; case 40: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120520
120563
|
if (!(settingsTimer === ptrType$57.nil)) {
|
|
120521
120564
|
settingsTimer.Stop();
|
|
120522
120565
|
settingsTimer = ptrType$57.nil;
|
|
@@ -120524,78 +120567,78 @@ $packages["net/http"] = (function() {
|
|
|
120524
120567
|
$s = 25; continue;
|
|
120525
120568
|
/* } else if (_selection[0] === 3) { */ case 23:
|
|
120526
120569
|
m = $clone(_selection[1][0], http2bodyReadMsg);
|
|
120527
|
-
$r = sc.noteBodyRead(m.st, m.n); /* */ $s =
|
|
120570
|
+
$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; }
|
|
120528
120571
|
$s = 25; continue;
|
|
120529
120572
|
/* } else if (_selection[0] === 4) { */ case 24:
|
|
120530
120573
|
msg = _selection[1][0];
|
|
120531
120574
|
_ref = msg;
|
|
120532
|
-
/* */ if ($assertType(_ref, funcType$1, true)[1]) { $s =
|
|
120533
|
-
/* */ if ($assertType(_ref, ptrType$10, true)[1]) { $s =
|
|
120534
|
-
/* */ if ($assertType(_ref, ptrType$62, true)[1]) { $s =
|
|
120535
|
-
/* */ $s =
|
|
120536
|
-
/* if ($assertType(_ref, funcType$1, true)[1]) { */ case
|
|
120575
|
+
/* */ if ($assertType(_ref, funcType$1, true)[1]) { $s = 42; continue; }
|
|
120576
|
+
/* */ if ($assertType(_ref, ptrType$10, true)[1]) { $s = 43; continue; }
|
|
120577
|
+
/* */ if ($assertType(_ref, ptrType$62, true)[1]) { $s = 44; continue; }
|
|
120578
|
+
/* */ $s = 45; continue;
|
|
120579
|
+
/* if ($assertType(_ref, funcType$1, true)[1]) { */ case 42:
|
|
120537
120580
|
v = _ref.$val;
|
|
120538
|
-
$r = v(loopNum); /* */ $s =
|
|
120539
|
-
$s =
|
|
120540
|
-
/* } else if ($assertType(_ref, ptrType$10, true)[1]) { */ case
|
|
120581
|
+
$r = v(loopNum); /* */ $s = 47; case 47: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120582
|
+
$s = 46; continue;
|
|
120583
|
+
/* } else if ($assertType(_ref, ptrType$10, true)[1]) { */ case 43:
|
|
120541
120584
|
v$1 = _ref.$val;
|
|
120542
120585
|
_1 = v$1;
|
|
120543
|
-
/* */ if (_1 === (http2settingsTimerMsg)) { $s =
|
|
120544
|
-
/* */ if (_1 === (http2idleTimerMsg)) { $s =
|
|
120545
|
-
/* */ if (_1 === (http2shutdownTimerMsg)) { $s =
|
|
120546
|
-
/* */ if (_1 === (http2gracefulShutdownMsg)) { $s =
|
|
120547
|
-
/* */ $s =
|
|
120548
|
-
/* if (_1 === (http2settingsTimerMsg)) { */ case
|
|
120549
|
-
_r$7 = sc.conn.RemoteAddr(); /* */ $s =
|
|
120586
|
+
/* */ if (_1 === (http2settingsTimerMsg)) { $s = 49; continue; }
|
|
120587
|
+
/* */ if (_1 === (http2idleTimerMsg)) { $s = 50; continue; }
|
|
120588
|
+
/* */ if (_1 === (http2shutdownTimerMsg)) { $s = 51; continue; }
|
|
120589
|
+
/* */ if (_1 === (http2gracefulShutdownMsg)) { $s = 52; continue; }
|
|
120590
|
+
/* */ $s = 53; continue;
|
|
120591
|
+
/* if (_1 === (http2settingsTimerMsg)) { */ case 49:
|
|
120592
|
+
_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; }
|
|
120550
120593
|
_arg$6 = _r$7;
|
|
120551
|
-
$r = sc.logf("timeout waiting for SETTINGS frames from %v", new sliceType([_arg$6])); /* */ $s =
|
|
120594
|
+
$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; }
|
|
120552
120595
|
$s = -1; return;
|
|
120553
|
-
/* } else if (_1 === (http2idleTimerMsg)) { */ case
|
|
120554
|
-
$r = sc.vlogf("connection is idle", new sliceType([])); /* */ $s =
|
|
120555
|
-
$r = sc.goAway(0); /* */ $s =
|
|
120556
|
-
$s =
|
|
120557
|
-
/* } else if (_1 === (http2shutdownTimerMsg)) { */ case
|
|
120558
|
-
_r$8 = sc.conn.RemoteAddr(); /* */ $s =
|
|
120596
|
+
/* } else if (_1 === (http2idleTimerMsg)) { */ case 50:
|
|
120597
|
+
$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; }
|
|
120598
|
+
$r = sc.goAway(0); /* */ $s = 58; case 58: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120599
|
+
$s = 54; continue;
|
|
120600
|
+
/* } else if (_1 === (http2shutdownTimerMsg)) { */ case 51:
|
|
120601
|
+
_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; }
|
|
120559
120602
|
_arg$7 = _r$8;
|
|
120560
|
-
$r = sc.vlogf("GOAWAY close timer fired; closing conn from %v", new sliceType([_arg$7])); /* */ $s =
|
|
120603
|
+
$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; }
|
|
120561
120604
|
$s = -1; return;
|
|
120562
|
-
/* } else if (_1 === (http2gracefulShutdownMsg)) { */ case
|
|
120563
|
-
$r = sc.startGracefulShutdownInternal(); /* */ $s =
|
|
120564
|
-
$s =
|
|
120565
|
-
/* } else { */ case
|
|
120605
|
+
/* } else if (_1 === (http2gracefulShutdownMsg)) { */ case 52:
|
|
120606
|
+
$r = sc.startGracefulShutdownInternal(); /* */ $s = 61; case 61: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120607
|
+
$s = 54; continue;
|
|
120608
|
+
/* } else { */ case 53:
|
|
120566
120609
|
$panic(new $String("unknown timer"));
|
|
120567
|
-
/* } */ case
|
|
120568
|
-
case
|
|
120569
|
-
$s =
|
|
120570
|
-
/* } else if ($assertType(_ref, ptrType$62, true)[1]) { */ case
|
|
120610
|
+
/* } */ case 54:
|
|
120611
|
+
case 48:
|
|
120612
|
+
$s = 46; continue;
|
|
120613
|
+
/* } else if ($assertType(_ref, ptrType$62, true)[1]) { */ case 44:
|
|
120571
120614
|
v$2 = _ref.$val;
|
|
120572
|
-
$r = sc.startPush(v$2); /* */ $s =
|
|
120573
|
-
$s =
|
|
120574
|
-
/* } else { */ case
|
|
120615
|
+
$r = sc.startPush(v$2); /* */ $s = 62; case 62: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120616
|
+
$s = 46; continue;
|
|
120617
|
+
/* } else { */ case 45:
|
|
120575
120618
|
v$3 = _ref;
|
|
120576
|
-
_r$9 = fmt.Sprintf("unexpected type %T", new sliceType([v$3])); /* */ $s =
|
|
120619
|
+
_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; }
|
|
120577
120620
|
$panic(new $String(_r$9));
|
|
120578
|
-
/* } */ case
|
|
120621
|
+
/* } */ case 46:
|
|
120579
120622
|
/* } } */ case 25:
|
|
120580
|
-
/* */ if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { $s =
|
|
120581
|
-
/* */ $s =
|
|
120582
|
-
/* if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { */ case
|
|
120583
|
-
$r = sc.vlogf("http2: too many control frames in send queue, closing connection", new sliceType([])); /* */ $s =
|
|
120623
|
+
/* */ if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { $s = 64; continue; }
|
|
120624
|
+
/* */ $s = 65; continue;
|
|
120625
|
+
/* if (sc.queuedControlFrames > sc.srv.maxQueuedControlFrames()) { */ case 64:
|
|
120626
|
+
$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; }
|
|
120584
120627
|
$s = -1; return;
|
|
120585
|
-
/* } */ case
|
|
120628
|
+
/* } */ case 65:
|
|
120586
120629
|
sentGoAway = sc.inGoAway && !sc.needToSendGoAway && !sc.writingFrame;
|
|
120587
|
-
if (!(sc.goAwayCode === 0)) { _v = false; $s =
|
|
120588
|
-
_r$10 = sc.curOpenStreams(); /* */ $s =
|
|
120589
|
-
_v = _r$10 === 0; case
|
|
120630
|
+
if (!(sc.goAwayCode === 0)) { _v = false; $s = 67; continue s; }
|
|
120631
|
+
_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; }
|
|
120632
|
+
_v = _r$10 === 0; case 67:
|
|
120590
120633
|
gracefulShutdownComplete = _v;
|
|
120591
|
-
/* */ if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { $s =
|
|
120592
|
-
/* */ $s =
|
|
120593
|
-
/* if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { */ case
|
|
120594
|
-
$r = sc.shutDownIn(http2goAwayTimeout); /* */ $s =
|
|
120595
|
-
/* } */ case
|
|
120634
|
+
/* */ if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { $s = 69; continue; }
|
|
120635
|
+
/* */ $s = 70; continue;
|
|
120636
|
+
/* if (sentGoAway && sc.shutdownTimer === ptrType$57.nil && (!((sc.goAwayCode === 0)) || gracefulShutdownComplete)) { */ case 69:
|
|
120637
|
+
$r = sc.shutDownIn(http2goAwayTimeout); /* */ $s = 71; case 71: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
120638
|
+
/* } */ case 70:
|
|
120596
120639
|
/* } */ $s = 17; continue; case 18:
|
|
120597
120640
|
$s = -1; return;
|
|
120598
|
-
/* */ } 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; } }
|
|
120641
|
+
/* */ } 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; } }
|
|
120599
120642
|
};
|
|
120600
120643
|
http2serverConn.prototype.serve = function() { return this.$val.serve(); };
|
|
120601
120644
|
http2serverConn.ptr.prototype.onSettingsTimer = function() {
|
|
@@ -121436,11 +121479,11 @@ $packages["net/http"] = (function() {
|
|
|
121436
121479
|
/* */ $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:
|
|
121437
121480
|
sc = this;
|
|
121438
121481
|
$r = sc.serveG.check(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
121439
|
-
|
|
121482
|
+
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
121483
|
+
if (sc.inGoAway && (!((sc.goAwayCode === 0)) || id > sc.maxClientStreamID)) {
|
|
121440
121484
|
$s = -1; return $ifaceNil;
|
|
121441
121485
|
}
|
|
121442
121486
|
data = f.Data();
|
|
121443
|
-
id = $clone(f.http2FrameHeader, http2FrameHeader).Header().StreamID;
|
|
121444
121487
|
_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; }
|
|
121445
121488
|
_tuple = _r$2;
|
|
121446
121489
|
state = _tuple[0];
|
|
@@ -122639,8 +122682,8 @@ $packages["net/http"] = (function() {
|
|
|
122639
122682
|
};
|
|
122640
122683
|
http2responseWriter.prototype.handlerDone = function() { return this.$val.handlerDone(); };
|
|
122641
122684
|
http2responseWriter.ptr.prototype.Push = function(target, opts) {
|
|
122642
|
-
var
|
|
122643
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
122685
|
+
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;
|
|
122686
|
+
/* */ $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:
|
|
122644
122687
|
w = this;
|
|
122645
122688
|
st = w.rws.stream;
|
|
122646
122689
|
sc = st.sc;
|
|
@@ -122708,44 +122751,41 @@ $packages["net/http"] = (function() {
|
|
|
122708
122751
|
_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; }
|
|
122709
122752
|
$s = -1; return _r$5;
|
|
122710
122753
|
/* } */ case 15:
|
|
122711
|
-
|
|
122712
|
-
|
|
122713
|
-
|
|
122714
|
-
/* */ $s =
|
|
122715
|
-
|
|
122716
|
-
|
|
122717
|
-
$s = -1; return _r$7;
|
|
122718
|
-
/* } */ case 20:
|
|
122719
|
-
case 17:
|
|
122754
|
+
/* */ if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { $s = 17; continue; }
|
|
122755
|
+
/* */ $s = 18; continue;
|
|
122756
|
+
/* if (http2asciiEqualFold(k, "content-length") || http2asciiEqualFold(k, "content-encoding") || http2asciiEqualFold(k, "trailer") || http2asciiEqualFold(k, "te") || http2asciiEqualFold(k, "expect") || http2asciiEqualFold(k, "host")) { */ case 17:
|
|
122757
|
+
_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; }
|
|
122758
|
+
$s = -1; return _r$6;
|
|
122759
|
+
/* } */ case 18:
|
|
122720
122760
|
_i++;
|
|
122721
122761
|
/* } */ $s = 12; continue; case 13:
|
|
122722
|
-
_r$
|
|
122723
|
-
err$1 = _r$
|
|
122762
|
+
_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; }
|
|
122763
|
+
err$1 = _r$7;
|
|
122724
122764
|
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
122725
122765
|
$s = -1; return err$1;
|
|
122726
122766
|
}
|
|
122727
|
-
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s =
|
|
122728
|
-
/* */ $s =
|
|
122729
|
-
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case
|
|
122730
|
-
_r$
|
|
122731
|
-
$s = -1; return _r$
|
|
122732
|
-
/* } */ case
|
|
122733
|
-
_r$
|
|
122734
|
-
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$
|
|
122735
|
-
_r$
|
|
122736
|
-
_selection = _r$
|
|
122737
|
-
/* */ if (_selection[0] === 0) { $s =
|
|
122738
|
-
/* */ if (_selection[0] === 1) { $s =
|
|
122739
|
-
/* */ if (_selection[0] === 2) { $s =
|
|
122740
|
-
/* */ $s =
|
|
122741
|
-
/* if (_selection[0] === 0) { */ case
|
|
122767
|
+
/* */ if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { $s = 21; continue; }
|
|
122768
|
+
/* */ $s = 22; continue;
|
|
122769
|
+
/* if (!(opts.Method === "GET") && !(opts.Method === "HEAD")) { */ case 21:
|
|
122770
|
+
_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; }
|
|
122771
|
+
$s = -1; return _r$8;
|
|
122772
|
+
/* } */ case 22:
|
|
122773
|
+
_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; }
|
|
122774
|
+
msg = new http2startPushRequest.ptr(st, opts.Method, u, http2cloneHeader(opts.Header), $assertType(_r$9, chanType));
|
|
122775
|
+
_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; }
|
|
122776
|
+
_selection = _r$10;
|
|
122777
|
+
/* */ if (_selection[0] === 0) { $s = 26; continue; }
|
|
122778
|
+
/* */ if (_selection[0] === 1) { $s = 27; continue; }
|
|
122779
|
+
/* */ if (_selection[0] === 2) { $s = 28; continue; }
|
|
122780
|
+
/* */ $s = 29; continue;
|
|
122781
|
+
/* if (_selection[0] === 0) { */ case 26:
|
|
122742
122782
|
$s = -1; return http2errClientDisconnected;
|
|
122743
|
-
/* } else if (_selection[0] === 1) { */ case
|
|
122783
|
+
/* } else if (_selection[0] === 1) { */ case 27:
|
|
122744
122784
|
$s = -1; return http2errStreamClosed;
|
|
122745
|
-
/* } else if (_selection[0] === 2) { */ case
|
|
122746
|
-
/* } */ case
|
|
122747
|
-
_r$
|
|
122748
|
-
_selection$1 = _r$
|
|
122785
|
+
/* } else if (_selection[0] === 2) { */ case 28:
|
|
122786
|
+
/* } */ case 29:
|
|
122787
|
+
_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; }
|
|
122788
|
+
_selection$1 = _r$11;
|
|
122749
122789
|
if (_selection$1[0] === 0) {
|
|
122750
122790
|
$s = -1; return http2errClientDisconnected;
|
|
122751
122791
|
} else if (_selection$1[0] === 1) {
|
|
@@ -122756,7 +122796,7 @@ $packages["net/http"] = (function() {
|
|
|
122756
122796
|
$s = -1; return err$2;
|
|
122757
122797
|
}
|
|
122758
122798
|
$s = -1; return $ifaceNil;
|
|
122759
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: http2responseWriter.ptr.prototype.Push }; } $f.
|
|
122799
|
+
/* */ } 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;
|
|
122760
122800
|
};
|
|
122761
122801
|
http2responseWriter.prototype.Push = function(target, opts) { return this.$val.Push(target, opts); };
|
|
122762
122802
|
http2serverConn.ptr.prototype.startPush = function(msg) {
|
|
@@ -123249,8 +123289,8 @@ $packages["net/http"] = (function() {
|
|
|
123249
123289
|
};
|
|
123250
123290
|
http2writeWindowUpdate.prototype.writeFrame = function(ctx) { return this.$val.writeFrame(ctx); };
|
|
123251
123291
|
http2encodeHeaders = function(enc, h, keys) {
|
|
123252
|
-
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;
|
|
123253
|
-
/* */ $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);
|
|
123292
|
+
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;
|
|
123293
|
+
/* */ $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);
|
|
123254
123294
|
/* */ if (keys === sliceType$2.nil) { $s = 1; continue; }
|
|
123255
123295
|
/* */ $s = 2; continue;
|
|
123256
123296
|
/* if (keys === sliceType$2.nil) { */ case 1:
|
|
@@ -123267,38 +123307,46 @@ $packages["net/http"] = (function() {
|
|
|
123267
123307
|
k = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
123268
123308
|
vv = (_entry = h[$String.keyFor(k)], _entry !== undefined ? _entry.v : sliceType$2.nil);
|
|
123269
123309
|
_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; }
|
|
123270
|
-
|
|
123271
|
-
|
|
123310
|
+
_tuple = _r$4;
|
|
123311
|
+
k$1 = _tuple[0];
|
|
123312
|
+
ascii = _tuple[1];
|
|
123313
|
+
/* */ if (!ascii) { $s = 8; continue; }
|
|
123272
123314
|
/* */ $s = 9; continue;
|
|
123273
|
-
/* if (!
|
|
123315
|
+
/* if (!ascii) { */ case 8:
|
|
123274
123316
|
_i++;
|
|
123275
123317
|
/* continue; */ $s = 5; continue;
|
|
123276
123318
|
/* } */ case 9:
|
|
123277
|
-
|
|
123319
|
+
/* */ if (!http2validWireHeaderFieldName(k$1)) { $s = 10; continue; }
|
|
123320
|
+
/* */ $s = 11; continue;
|
|
123321
|
+
/* if (!http2validWireHeaderFieldName(k$1)) { */ case 10:
|
|
123322
|
+
_i++;
|
|
123323
|
+
/* continue; */ $s = 5; continue;
|
|
123324
|
+
/* } */ case 11:
|
|
123325
|
+
isTE = k$1 === "transfer-encoding";
|
|
123278
123326
|
_ref$1 = vv;
|
|
123279
123327
|
_i$1 = 0;
|
|
123280
|
-
/* while (true) { */ case
|
|
123281
|
-
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s =
|
|
123328
|
+
/* while (true) { */ case 12:
|
|
123329
|
+
/* if (!(_i$1 < _ref$1.$length)) { break; } */ if(!(_i$1 < _ref$1.$length)) { $s = 13; continue; }
|
|
123282
123330
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
123283
|
-
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s =
|
|
123284
|
-
/* */ $s = 13; continue;
|
|
123285
|
-
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 12:
|
|
123286
|
-
_i$1++;
|
|
123287
|
-
/* continue; */ $s = 10; continue;
|
|
123288
|
-
/* } */ case 13:
|
|
123289
|
-
/* */ if (isTE && !(v === "trailers")) { $s = 14; continue; }
|
|
123331
|
+
/* */ if (!httpguts.ValidHeaderFieldValue(v)) { $s = 14; continue; }
|
|
123290
123332
|
/* */ $s = 15; continue;
|
|
123291
|
-
/* if (
|
|
123333
|
+
/* if (!httpguts.ValidHeaderFieldValue(v)) { */ case 14:
|
|
123292
123334
|
_i$1++;
|
|
123293
|
-
/* continue; */ $s =
|
|
123335
|
+
/* continue; */ $s = 12; continue;
|
|
123294
123336
|
/* } */ case 15:
|
|
123295
|
-
|
|
123337
|
+
/* */ if (isTE && !(v === "trailers")) { $s = 16; continue; }
|
|
123338
|
+
/* */ $s = 17; continue;
|
|
123339
|
+
/* if (isTE && !(v === "trailers")) { */ case 16:
|
|
123340
|
+
_i$1++;
|
|
123341
|
+
/* continue; */ $s = 12; continue;
|
|
123342
|
+
/* } */ case 17:
|
|
123343
|
+
$r = http2encKV(enc, k$1, v); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
123296
123344
|
_i$1++;
|
|
123297
|
-
/* } */ $s =
|
|
123345
|
+
/* } */ $s = 12; continue; case 13:
|
|
123298
123346
|
_i++;
|
|
123299
123347
|
/* } */ $s = 5; continue; case 6:
|
|
123300
123348
|
$s = -1; return;
|
|
123301
|
-
/* */ } 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; } }
|
|
123349
|
+
/* */ } 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; } }
|
|
123302
123350
|
};
|
|
123303
123351
|
http2FrameWriteRequest.ptr.prototype.StreamID = function() {
|
|
123304
123352
|
var _tuple, ok, se, wr;
|
|
@@ -123477,16 +123525,16 @@ $packages["net/http"] = (function() {
|
|
|
123477
123525
|
}
|
|
123478
123526
|
x$4 = ln - 1 >> 0;
|
|
123479
123527
|
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]));
|
|
123480
|
-
(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$
|
|
123528
|
+
(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));
|
|
123481
123529
|
p.$set($subslice((p.$get()), 0, x$4));
|
|
123482
123530
|
return q;
|
|
123483
123531
|
};
|
|
123484
123532
|
http2NewPriorityWriteScheduler = function(cfg) {
|
|
123485
123533
|
var _key, cfg, ws;
|
|
123486
|
-
if (cfg === ptrType$
|
|
123534
|
+
if (cfg === ptrType$82.nil) {
|
|
123487
123535
|
cfg = new http2PriorityWriteSchedulerConfig.ptr(10, 10, false);
|
|
123488
123536
|
}
|
|
123489
|
-
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$
|
|
123537
|
+
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);
|
|
123490
123538
|
_key = 0; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: ws.root };
|
|
123491
123539
|
if (cfg.ThrottleOutOfOrderWrites) {
|
|
123492
123540
|
ws.writeThrottleLimit = 1024;
|
|
@@ -123505,24 +123553,24 @@ $packages["net/http"] = (function() {
|
|
|
123505
123553
|
return;
|
|
123506
123554
|
}
|
|
123507
123555
|
parent$1 = n.parent;
|
|
123508
|
-
if (!(parent$1 === ptrType$
|
|
123509
|
-
if (n.prev === ptrType$
|
|
123556
|
+
if (!(parent$1 === ptrType$83.nil)) {
|
|
123557
|
+
if (n.prev === ptrType$83.nil) {
|
|
123510
123558
|
parent$1.kids = n.next;
|
|
123511
123559
|
} else {
|
|
123512
123560
|
n.prev.next = n.next;
|
|
123513
123561
|
}
|
|
123514
|
-
if (!(n.next === ptrType$
|
|
123562
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
123515
123563
|
n.next.prev = n.prev;
|
|
123516
123564
|
}
|
|
123517
123565
|
}
|
|
123518
123566
|
n.parent = parent;
|
|
123519
|
-
if (parent === ptrType$
|
|
123520
|
-
n.next = ptrType$
|
|
123521
|
-
n.prev = ptrType$
|
|
123567
|
+
if (parent === ptrType$83.nil) {
|
|
123568
|
+
n.next = ptrType$83.nil;
|
|
123569
|
+
n.prev = ptrType$83.nil;
|
|
123522
123570
|
} else {
|
|
123523
123571
|
n.next = parent.kids;
|
|
123524
|
-
n.prev = ptrType$
|
|
123525
|
-
if (!(n.next === ptrType$
|
|
123572
|
+
n.prev = ptrType$83.nil;
|
|
123573
|
+
if (!(n.next === ptrType$83.nil)) {
|
|
123526
123574
|
n.next.prev = n;
|
|
123527
123575
|
}
|
|
123528
123576
|
parent.kids = n;
|
|
@@ -123534,7 +123582,7 @@ $packages["net/http"] = (function() {
|
|
|
123534
123582
|
n = this;
|
|
123535
123583
|
n.bytes = (x$4 = n.bytes, x$5 = b, new $Int64(x$4.$high + x$5.$high, x$4.$low + x$5.$low));
|
|
123536
123584
|
while (true) {
|
|
123537
|
-
if (!(!(n === ptrType$
|
|
123585
|
+
if (!(!(n === ptrType$83.nil))) { break; }
|
|
123538
123586
|
n.subtreeBytes = (x$6 = n.subtreeBytes, x$7 = b, new $Int64(x$6.$high + x$7.$high, x$6.$low + x$7.$low));
|
|
123539
123587
|
n = n.parent;
|
|
123540
123588
|
}
|
|
@@ -123552,7 +123600,7 @@ $packages["net/http"] = (function() {
|
|
|
123552
123600
|
/* if (_v) { */ case 1:
|
|
123553
123601
|
$s = -1; return true;
|
|
123554
123602
|
/* } */ case 2:
|
|
123555
|
-
if (n.kids === ptrType$
|
|
123603
|
+
if (n.kids === ptrType$83.nil) {
|
|
123556
123604
|
$s = -1; return false;
|
|
123557
123605
|
}
|
|
123558
123606
|
if (!((n.id === 0))) {
|
|
@@ -123562,7 +123610,7 @@ $packages["net/http"] = (function() {
|
|
|
123562
123610
|
needSort = false;
|
|
123563
123611
|
k = n.kids.next;
|
|
123564
123612
|
while (true) {
|
|
123565
|
-
if (!(!(k === ptrType$
|
|
123613
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
123566
123614
|
if (!((k.weight === w))) {
|
|
123567
123615
|
needSort = true;
|
|
123568
123616
|
break;
|
|
@@ -123574,7 +123622,7 @@ $packages["net/http"] = (function() {
|
|
|
123574
123622
|
/* if (!needSort) { */ case 5:
|
|
123575
123623
|
k$1 = n.kids;
|
|
123576
123624
|
/* while (true) { */ case 7:
|
|
123577
|
-
/* if (!(!(k$1 === ptrType$
|
|
123625
|
+
/* if (!(!(k$1 === ptrType$83.nil))) { break; } */ if(!(!(k$1 === ptrType$83.nil))) { $s = 8; continue; }
|
|
123578
123626
|
_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; }
|
|
123579
123627
|
/* */ if (_r$3) { $s = 9; continue; }
|
|
123580
123628
|
/* */ $s = 10; continue;
|
|
@@ -123587,9 +123635,9 @@ $packages["net/http"] = (function() {
|
|
|
123587
123635
|
/* } */ case 6:
|
|
123588
123636
|
tmp.$set($subslice((tmp.$get()), 0, 0));
|
|
123589
123637
|
while (true) {
|
|
123590
|
-
if (!(!(n.kids === ptrType$
|
|
123638
|
+
if (!(!(n.kids === ptrType$83.nil))) { break; }
|
|
123591
123639
|
tmp.$set($append(tmp.$get(), n.kids));
|
|
123592
|
-
n.kids.setParent(ptrType$
|
|
123640
|
+
n.kids.setParent(ptrType$83.nil);
|
|
123593
123641
|
}
|
|
123594
123642
|
$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; }
|
|
123595
123643
|
i = tmp.$get().$length - 1 >> 0;
|
|
@@ -123600,7 +123648,7 @@ $packages["net/http"] = (function() {
|
|
|
123600
123648
|
}
|
|
123601
123649
|
k$2 = n.kids;
|
|
123602
123650
|
/* while (true) { */ case 13:
|
|
123603
|
-
/* if (!(!(k$2 === ptrType$
|
|
123651
|
+
/* if (!(!(k$2 === ptrType$83.nil))) { break; } */ if(!(!(k$2 === ptrType$83.nil))) { $s = 14; continue; }
|
|
123604
123652
|
_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; }
|
|
123605
123653
|
/* */ if (_r$4) { $s = 15; continue; }
|
|
123606
123654
|
/* */ $s = 16; continue;
|
|
@@ -123652,10 +123700,10 @@ $packages["net/http"] = (function() {
|
|
|
123652
123700
|
var _entry, _entry$1, _key, _r$2, curr, n, options, parent, streamID, ws, $s, $r;
|
|
123653
123701
|
/* */ $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:
|
|
123654
123702
|
ws = this;
|
|
123655
|
-
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
123656
|
-
/* */ if (!(curr === ptrType$
|
|
123703
|
+
curr = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
123704
|
+
/* */ if (!(curr === ptrType$83.nil)) { $s = 1; continue; }
|
|
123657
123705
|
/* */ $s = 2; continue;
|
|
123658
|
-
/* if (!(curr === ptrType$
|
|
123706
|
+
/* if (!(curr === ptrType$83.nil)) { */ case 1:
|
|
123659
123707
|
/* */ if (!((curr.state === 2))) { $s = 3; continue; }
|
|
123660
123708
|
/* */ $s = 4; continue;
|
|
123661
123709
|
/* if (!((curr.state === 2))) { */ case 3:
|
|
@@ -123665,11 +123713,11 @@ $packages["net/http"] = (function() {
|
|
|
123665
123713
|
curr.state = 0;
|
|
123666
123714
|
$s = -1; return;
|
|
123667
123715
|
/* } */ case 2:
|
|
123668
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
123669
|
-
if (parent === ptrType$
|
|
123716
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(options.PusherID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
123717
|
+
if (parent === ptrType$83.nil) {
|
|
123670
123718
|
parent = ws.root;
|
|
123671
123719
|
}
|
|
123672
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123720
|
+
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);
|
|
123673
123721
|
n.setParent(parent);
|
|
123674
123722
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
123675
123723
|
if (streamID > ws.maxID) {
|
|
@@ -123687,26 +123735,26 @@ $packages["net/http"] = (function() {
|
|
|
123687
123735
|
if (streamID === 0) {
|
|
123688
123736
|
$panic(new $String("violation of WriteScheduler interface: cannot close stream 0"));
|
|
123689
123737
|
}
|
|
123690
|
-
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
123738
|
+
/* */ if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { $s = 1; continue; }
|
|
123691
123739
|
/* */ $s = 2; continue;
|
|
123692
|
-
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
123740
|
+
/* if ((_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil) === ptrType$83.nil) { */ case 1:
|
|
123693
123741
|
_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; }
|
|
123694
123742
|
$panic(new $String(_r$2));
|
|
123695
123743
|
/* } */ case 2:
|
|
123696
|
-
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
123744
|
+
/* */ if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { $s = 4; continue; }
|
|
123697
123745
|
/* */ $s = 5; continue;
|
|
123698
|
-
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
123746
|
+
/* if (!(((_entry$1 = ws.nodes[$Uint32.keyFor(streamID)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil).state === 0))) { */ case 4:
|
|
123699
123747
|
_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; }
|
|
123700
123748
|
$panic(new $String(_r$3));
|
|
123701
123749
|
/* } */ case 5:
|
|
123702
|
-
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$
|
|
123750
|
+
n = (_entry$2 = ws.nodes[$Uint32.keyFor(streamID)], _entry$2 !== undefined ? _entry$2.v : ptrType$83.nil);
|
|
123703
123751
|
n.state = 1;
|
|
123704
123752
|
n.addBytes((x$4 = n.bytes, new $Int64(-x$4.$high, -x$4.$low)));
|
|
123705
123753
|
q[0] = $clone(n.q, http2writeQueue);
|
|
123706
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123754
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q[0]);
|
|
123707
123755
|
n.q.s = sliceType$24.nil;
|
|
123708
123756
|
if (ws.maxClosedNodesInTree > 0) {
|
|
123709
|
-
ws.addClosedOrIdleNode((ws.$ptr_closedNodes || (ws.$ptr_closedNodes = new ptrType$
|
|
123757
|
+
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);
|
|
123710
123758
|
} else {
|
|
123711
123759
|
ws.removeNode(n);
|
|
123712
123760
|
}
|
|
@@ -123720,19 +123768,19 @@ $packages["net/http"] = (function() {
|
|
|
123720
123768
|
if (streamID === 0) {
|
|
123721
123769
|
$panic(new $String("adjustPriority on root"));
|
|
123722
123770
|
}
|
|
123723
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$
|
|
123724
|
-
if (n === ptrType$
|
|
123771
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(streamID)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
123772
|
+
if (n === ptrType$83.nil) {
|
|
123725
123773
|
if (streamID <= ws.maxID || (ws.maxIdleNodesInTree === 0)) {
|
|
123726
123774
|
return;
|
|
123727
123775
|
}
|
|
123728
123776
|
ws.maxID = streamID;
|
|
123729
|
-
n = new http2priorityNode.ptr($clone((ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123777
|
+
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);
|
|
123730
123778
|
n.setParent(ws.root);
|
|
123731
123779
|
_key = streamID; (ws.nodes || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: n };
|
|
123732
|
-
ws.addClosedOrIdleNode((ws.$ptr_idleNodes || (ws.$ptr_idleNodes = new ptrType$
|
|
123780
|
+
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);
|
|
123733
123781
|
}
|
|
123734
|
-
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$
|
|
123735
|
-
if (parent === ptrType$
|
|
123782
|
+
parent = (_entry$1 = ws.nodes[$Uint32.keyFor(priority.StreamDep)], _entry$1 !== undefined ? _entry$1.v : ptrType$83.nil);
|
|
123783
|
+
if (parent === ptrType$83.nil) {
|
|
123736
123784
|
n.setParent(ws.root);
|
|
123737
123785
|
n.weight = 15;
|
|
123738
123786
|
return;
|
|
@@ -123742,7 +123790,7 @@ $packages["net/http"] = (function() {
|
|
|
123742
123790
|
}
|
|
123743
123791
|
x$4 = parent.parent;
|
|
123744
123792
|
while (true) {
|
|
123745
|
-
if (!(!(x$4 === ptrType$
|
|
123793
|
+
if (!(!(x$4 === ptrType$83.nil))) { break; }
|
|
123746
123794
|
if (x$4 === n) {
|
|
123747
123795
|
parent.setParent(n.parent);
|
|
123748
123796
|
break;
|
|
@@ -123752,7 +123800,7 @@ $packages["net/http"] = (function() {
|
|
|
123752
123800
|
if (priority.Exclusive) {
|
|
123753
123801
|
k = parent.kids;
|
|
123754
123802
|
while (true) {
|
|
123755
|
-
if (!(!(k === ptrType$
|
|
123803
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
123756
123804
|
next = k.next;
|
|
123757
123805
|
if (!(k === n)) {
|
|
123758
123806
|
k.setParent(n);
|
|
@@ -123767,13 +123815,13 @@ $packages["net/http"] = (function() {
|
|
|
123767
123815
|
http2priorityWriteScheduler.ptr.prototype.Push = function(wr) {
|
|
123768
123816
|
var _entry, id, n, wr, ws;
|
|
123769
123817
|
ws = this;
|
|
123770
|
-
n = ptrType$
|
|
123818
|
+
n = ptrType$83.nil;
|
|
123771
123819
|
id = $clone(wr, http2FrameWriteRequest).StreamID();
|
|
123772
123820
|
if (id === 0) {
|
|
123773
123821
|
n = ws.root;
|
|
123774
123822
|
} else {
|
|
123775
|
-
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$
|
|
123776
|
-
if (n === ptrType$
|
|
123823
|
+
n = (_entry = ws.nodes[$Uint32.keyFor(id)], _entry !== undefined ? _entry.v : ptrType$83.nil);
|
|
123824
|
+
if (n === ptrType$83.nil) {
|
|
123777
123825
|
if ($clone(wr, http2FrameWriteRequest).DataSize() > 0) {
|
|
123778
123826
|
$panic(new $String("add DATA on non-open stream"));
|
|
123779
123827
|
}
|
|
@@ -123792,7 +123840,7 @@ $packages["net/http"] = (function() {
|
|
|
123792
123840
|
wr[0] = new http2FrameWriteRequest.ptr($ifaceNil, ptrType$5.nil, $chanNil);
|
|
123793
123841
|
ok[0] = false;
|
|
123794
123842
|
ws[0] = this;
|
|
123795
|
-
_r$2 = ws[0].root.walkReadyInOrder(false, (ws[0].$ptr_tmp || (ws[0].$ptr_tmp = new ptrType$
|
|
123843
|
+
_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) {
|
|
123796
123844
|
var _tuple, limit, n, openParent;
|
|
123797
123845
|
limit = 2147483647;
|
|
123798
123846
|
if (openParent) {
|
|
@@ -123844,11 +123892,11 @@ $packages["net/http"] = (function() {
|
|
|
123844
123892
|
ws = this;
|
|
123845
123893
|
k = n.kids;
|
|
123846
123894
|
while (true) {
|
|
123847
|
-
if (!(!(k === ptrType$
|
|
123895
|
+
if (!(!(k === ptrType$83.nil))) { break; }
|
|
123848
123896
|
k.setParent(n.parent);
|
|
123849
123897
|
k = k.next;
|
|
123850
123898
|
}
|
|
123851
|
-
n.setParent(ptrType$
|
|
123899
|
+
n.setParent(ptrType$83.nil);
|
|
123852
123900
|
delete ws.nodes[$Uint32.keyFor(n.id)];
|
|
123853
123901
|
};
|
|
123854
123902
|
http2priorityWriteScheduler.prototype.removeNode = function(n) { return this.$val.removeNode(n); };
|
|
@@ -123863,14 +123911,14 @@ $packages["net/http"] = (function() {
|
|
|
123863
123911
|
http2randomWriteScheduler.ptr.prototype.CloseStream = function(streamID) {
|
|
123864
123912
|
var _entry, _tuple, ok, q, streamID, ws;
|
|
123865
123913
|
ws = this;
|
|
123866
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
123914
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(streamID)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
123867
123915
|
q = _tuple[0];
|
|
123868
123916
|
ok = _tuple[1];
|
|
123869
123917
|
if (!ok) {
|
|
123870
123918
|
return;
|
|
123871
123919
|
}
|
|
123872
123920
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
123873
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123921
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
123874
123922
|
};
|
|
123875
123923
|
http2randomWriteScheduler.prototype.CloseStream = function(streamID) { return this.$val.CloseStream(streamID); };
|
|
123876
123924
|
http2randomWriteScheduler.ptr.prototype.AdjustStream = function(streamID, priority) {
|
|
@@ -123886,11 +123934,11 @@ $packages["net/http"] = (function() {
|
|
|
123886
123934
|
ws.zero.push($clone(wr, http2FrameWriteRequest));
|
|
123887
123935
|
return;
|
|
123888
123936
|
}
|
|
123889
|
-
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$
|
|
123937
|
+
_tuple = (_entry = ws.sq[$Uint32.keyFor(id)], _entry !== undefined ? [_entry.v, true] : [ptrType$81.nil, false]);
|
|
123890
123938
|
q = _tuple[0];
|
|
123891
123939
|
ok = _tuple[1];
|
|
123892
123940
|
if (!ok) {
|
|
123893
|
-
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123941
|
+
q = (ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).get();
|
|
123894
123942
|
_key = id; (ws.sq || $throwRuntimeError("assignment to entry in nil map"))[$Uint32.keyFor(_key)] = { k: _key, v: q };
|
|
123895
123943
|
}
|
|
123896
123944
|
q.push($clone(wr, http2FrameWriteRequest));
|
|
@@ -123920,7 +123968,7 @@ $packages["net/http"] = (function() {
|
|
|
123920
123968
|
if (ok) {
|
|
123921
123969
|
if (q.empty()) {
|
|
123922
123970
|
delete ws.sq[$Uint32.keyFor(streamID)];
|
|
123923
|
-
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$
|
|
123971
|
+
(ws.$ptr_queuePool || (ws.$ptr_queuePool = new ptrType$84(function() { return this.$target.queuePool; }, function($v) { this.$target.queuePool = $v; }, ws))).put(q);
|
|
123924
123972
|
}
|
|
123925
123973
|
return [wr, true];
|
|
123926
123974
|
}
|
|
@@ -124092,10 +124140,10 @@ $packages["net/http"] = (function() {
|
|
|
124092
124140
|
var _entry, _entry$1, _i, _keys, _r$2, _ref, _tmp, _tmp$1, exclude, h, hs, k, kvs, vv, $s, $r;
|
|
124093
124141
|
/* */ $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:
|
|
124094
124142
|
kvs = sliceType$5.nil;
|
|
124095
|
-
hs = ptrType$
|
|
124143
|
+
hs = ptrType$86.nil;
|
|
124096
124144
|
h = this.$val;
|
|
124097
124145
|
_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; }
|
|
124098
|
-
hs = $assertType(_r$2, ptrType$
|
|
124146
|
+
hs = $assertType(_r$2, ptrType$86);
|
|
124099
124147
|
if (hs.kvs.$capacity < $keys(h).length) {
|
|
124100
124148
|
hs.kvs = $makeSlice(sliceType$5, 0, $keys(h).length);
|
|
124101
124149
|
}
|
|
@@ -124460,10 +124508,10 @@ $packages["net/http"] = (function() {
|
|
|
124460
124508
|
/* */ $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:
|
|
124461
124509
|
r = this;
|
|
124462
124510
|
if (r.MultipartForm === multipartByReader) {
|
|
124463
|
-
$s = -1; return [ptrType$
|
|
124511
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: MultipartReader called twice")];
|
|
124464
124512
|
}
|
|
124465
124513
|
if (!(r.MultipartForm === ptrType$20.nil)) {
|
|
124466
|
-
$s = -1; return [ptrType$
|
|
124514
|
+
$s = -1; return [ptrType$87.nil, errors.New("http: multipart handled by ParseMultipartForm")];
|
|
124467
124515
|
}
|
|
124468
124516
|
r.MultipartForm = multipartByReader;
|
|
124469
124517
|
_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; }
|
|
@@ -124478,7 +124526,7 @@ $packages["net/http"] = (function() {
|
|
|
124478
124526
|
_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; }
|
|
124479
124527
|
v = _r$2;
|
|
124480
124528
|
if (v === "") {
|
|
124481
|
-
$s = -1; return [ptrType$
|
|
124529
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
124482
124530
|
}
|
|
124483
124531
|
_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; }
|
|
124484
124532
|
_tuple = _r$3;
|
|
@@ -124486,13 +124534,13 @@ $packages["net/http"] = (function() {
|
|
|
124486
124534
|
params = _tuple[1];
|
|
124487
124535
|
err = _tuple[2];
|
|
124488
124536
|
if (!($interfaceIsEqual(err, $ifaceNil)) || !(d === "multipart/form-data" || allowMixed && d === "multipart/mixed")) {
|
|
124489
|
-
$s = -1; return [ptrType$
|
|
124537
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrNotMultipart];
|
|
124490
124538
|
}
|
|
124491
124539
|
_tuple$1 = (_entry = params[$String.keyFor("boundary")], _entry !== undefined ? [_entry.v, true] : ["", false]);
|
|
124492
124540
|
boundary = _tuple$1[0];
|
|
124493
124541
|
ok = _tuple$1[1];
|
|
124494
124542
|
if (!ok) {
|
|
124495
|
-
$s = -1; return [ptrType$
|
|
124543
|
+
$s = -1; return [ptrType$87.nil, $pkg.ErrMissingBoundary];
|
|
124496
124544
|
}
|
|
124497
124545
|
$s = -1; return [multipart.NewReader(r.Body, boundary), $ifaceNil];
|
|
124498
124546
|
/* */ } 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;
|
|
@@ -124977,7 +125025,7 @@ $packages["net/http"] = (function() {
|
|
|
124977
125025
|
_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; }
|
|
124978
125026
|
v = _r$2;
|
|
124979
125027
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
124980
|
-
tr = $assertType(v, ptrType$
|
|
125028
|
+
tr = $assertType(v, ptrType$90);
|
|
124981
125029
|
tr.R = br;
|
|
124982
125030
|
$s = -1; return tr;
|
|
124983
125031
|
}
|
|
@@ -124987,7 +125035,7 @@ $packages["net/http"] = (function() {
|
|
|
124987
125035
|
};
|
|
124988
125036
|
putTextprotoReader = function(r) {
|
|
124989
125037
|
var r;
|
|
124990
|
-
r.R = ptrType$
|
|
125038
|
+
r.R = ptrType$77.nil;
|
|
124991
125039
|
textprotoReaderPool.Put(r);
|
|
124992
125040
|
};
|
|
124993
125041
|
readRequest = function(b, deleteHostHeader) {
|
|
@@ -125231,7 +125279,7 @@ $packages["net/http"] = (function() {
|
|
|
125231
125279
|
/* if (ct === "application/x-www-form-urlencoded") { */ case 4:
|
|
125232
125280
|
reader = r.Body;
|
|
125233
125281
|
maxFormSize = new $Int64(2147483647, 4294967295);
|
|
125234
|
-
_tuple$1 = $assertType(r.Body, ptrType$
|
|
125282
|
+
_tuple$1 = $assertType(r.Body, ptrType$91, true);
|
|
125235
125283
|
ok = _tuple$1[1];
|
|
125236
125284
|
if (!ok) {
|
|
125237
125285
|
maxFormSize = new $Int64(0, 10485760);
|
|
@@ -125675,12 +125723,12 @@ $packages["net/http"] = (function() {
|
|
|
125675
125723
|
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;
|
|
125676
125724
|
/* */ $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:
|
|
125677
125725
|
rwc = $ifaceNil;
|
|
125678
|
-
buf = ptrType$
|
|
125726
|
+
buf = ptrType$92.nil;
|
|
125679
125727
|
err = $ifaceNil;
|
|
125680
125728
|
c = this;
|
|
125681
125729
|
if (c.hijackedv) {
|
|
125682
125730
|
_tmp = $ifaceNil;
|
|
125683
|
-
_tmp$1 = ptrType$
|
|
125731
|
+
_tmp$1 = ptrType$92.nil;
|
|
125684
125732
|
_tmp$2 = $pkg.ErrHijacked;
|
|
125685
125733
|
rwc = _tmp;
|
|
125686
125734
|
buf = _tmp$1;
|
|
@@ -125703,7 +125751,7 @@ $packages["net/http"] = (function() {
|
|
|
125703
125751
|
/* */ $s = 7; continue;
|
|
125704
125752
|
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 6:
|
|
125705
125753
|
_tmp$3 = $ifaceNil;
|
|
125706
|
-
_tmp$4 = ptrType$
|
|
125754
|
+
_tmp$4 = ptrType$92.nil;
|
|
125707
125755
|
_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; }
|
|
125708
125756
|
_tmp$5 = _r$4;
|
|
125709
125757
|
rwc = _tmp$3;
|
|
@@ -125865,17 +125913,17 @@ $packages["net/http"] = (function() {
|
|
|
125865
125913
|
$ptrType(atomicBool).prototype.isSet = function() {
|
|
125866
125914
|
var _ptr, b;
|
|
125867
125915
|
b = this;
|
|
125868
|
-
return !((atomic.LoadInt32(((_ptr = b, new ptrType$
|
|
125916
|
+
return !((atomic.LoadInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target)))) === 0));
|
|
125869
125917
|
};
|
|
125870
125918
|
$ptrType(atomicBool).prototype.setTrue = function() {
|
|
125871
125919
|
var _ptr, b;
|
|
125872
125920
|
b = this;
|
|
125873
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
125921
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 1);
|
|
125874
125922
|
};
|
|
125875
125923
|
$ptrType(atomicBool).prototype.setFalse = function() {
|
|
125876
125924
|
var _ptr, b;
|
|
125877
125925
|
b = this;
|
|
125878
|
-
atomic.StoreInt32(((_ptr = b, new ptrType$
|
|
125926
|
+
atomic.StoreInt32(((_ptr = b, new ptrType$93(function() { return (_ptr.$get() >> 0); }, function($v) { _ptr.$set(($v >> 0)); }, _ptr.$target))), 0);
|
|
125879
125927
|
};
|
|
125880
125928
|
response.ptr.prototype.declareTrailer = function(k) {
|
|
125881
125929
|
var _r$2, _r$3, k, w, $s, $r;
|
|
@@ -125910,8 +125958,8 @@ $packages["net/http"] = (function() {
|
|
|
125910
125958
|
};
|
|
125911
125959
|
response.prototype.requestTooLarge = function() { return this.$val.requestTooLarge(); };
|
|
125912
125960
|
response.ptr.prototype.ReadFrom = function(src) {
|
|
125913
|
-
var _r$2, _r$3, _r$4, _r$5, _r$6, _r$7,
|
|
125914
|
-
/* */ $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;
|
|
125961
|
+
var _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tuple, _tuple$1, _tuple$2, _tuple$3, _tuple$4, buf, bufp, err, err$1, err$2, n, n0, n0$1, n0$2, ok, rf, src, w, x$10, x$11, x$4, x$5, x$6, x$7, x$8, x$9, $s, $deferred, $r;
|
|
125962
|
+
/* */ $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; _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; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; _tuple$3 = $f._tuple$3; _tuple$4 = $f._tuple$4; buf = $f.buf; bufp = $f.bufp; err = $f.err; err$1 = $f.err$1; err$2 = $f.err$2; n = $f.n; n0 = $f.n0; n0$1 = $f.n0$1; n0$2 = $f.n0$2; ok = $f.ok; rf = $f.rf; src = $f.src; w = $f.w; x$10 = $f.x$10; x$11 = $f.x$11; 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; $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);
|
|
125915
125963
|
n = new $Int64(0, 0);
|
|
125916
125964
|
err = $ifaceNil;
|
|
125917
125965
|
w = this;
|
|
@@ -125931,77 +125979,58 @@ $packages["net/http"] = (function() {
|
|
|
125931
125979
|
err = _tuple$1[1];
|
|
125932
125980
|
$s = -1; return [n, err];
|
|
125933
125981
|
/* } */ case 3:
|
|
125934
|
-
|
|
125935
|
-
|
|
125936
|
-
|
|
125937
|
-
|
|
125938
|
-
|
|
125939
|
-
|
|
125940
|
-
|
|
125941
|
-
|
|
125942
|
-
|
|
125943
|
-
|
|
125944
|
-
|
|
125945
|
-
|
|
125946
|
-
|
|
125947
|
-
|
|
125948
|
-
if (!($interfaceIsEqual(ew, $ifaceNil))) {
|
|
125949
|
-
err = ew;
|
|
125950
|
-
} else if (!((nr === nw))) {
|
|
125951
|
-
err = io.ErrShortWrite;
|
|
125982
|
+
/* */ if (!w.cw.wroteHeader) { $s = 5; continue; }
|
|
125983
|
+
/* */ $s = 6; continue;
|
|
125984
|
+
/* if (!w.cw.wroteHeader) { */ case 5:
|
|
125985
|
+
_r$4 = io.CopyBuffer((x$5 = new writerOnly.ptr(w), new x$5.constructor.elem(x$5)), io.LimitReader(src, new $Int64(0, 512)), buf); /* */ $s = 7; case 7: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
125986
|
+
_tuple$2 = _r$4;
|
|
125987
|
+
n0 = _tuple$2[0];
|
|
125988
|
+
err$1 = _tuple$2[1];
|
|
125989
|
+
n = (x$6 = n0, new $Int64(n.$high + x$6.$high, n.$low + x$6.$low));
|
|
125990
|
+
if (!($interfaceIsEqual(err$1, $ifaceNil)) || (n0.$high < 0 || (n0.$high === 0 && n0.$low < 512))) {
|
|
125991
|
+
_tmp = n;
|
|
125992
|
+
_tmp$1 = err$1;
|
|
125993
|
+
n = _tmp;
|
|
125994
|
+
err = _tmp$1;
|
|
125995
|
+
$s = -1; return [n, err];
|
|
125952
125996
|
}
|
|
125953
|
-
/* } */ case
|
|
125954
|
-
|
|
125955
|
-
|
|
125956
|
-
}
|
|
125957
|
-
/* */ if (
|
|
125997
|
+
/* } */ case 6:
|
|
125998
|
+
_r$5 = w.w.Flush(); /* */ $s = 8; case 8: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
125999
|
+
_r$5;
|
|
126000
|
+
$r = w.cw.flush(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126001
|
+
/* */ if (!w.cw.chunking && w.bodyAllowed()) { $s = 10; continue; }
|
|
125958
126002
|
/* */ $s = 11; continue;
|
|
125959
|
-
/* if (
|
|
125960
|
-
$
|
|
125961
|
-
|
|
125962
|
-
|
|
125963
|
-
|
|
125964
|
-
|
|
125965
|
-
|
|
125966
|
-
err = _tmp$1;
|
|
125967
|
-
$s = -1; return [n, err];
|
|
125968
|
-
}
|
|
125969
|
-
_r$7 = w.w.Flush(); /* */ $s = 13; case 13: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
125970
|
-
_r$7;
|
|
125971
|
-
$r = w.cw.flush(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
125972
|
-
/* */ if (!w.cw.chunking && w.bodyAllowed()) { $s = 15; continue; }
|
|
125973
|
-
/* */ $s = 16; continue;
|
|
125974
|
-
/* if (!w.cw.chunking && w.bodyAllowed()) { */ case 15:
|
|
125975
|
-
_r$8 = rf.ReadFrom(src); /* */ $s = 17; case 17: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
125976
|
-
_tuple$4 = _r$8;
|
|
125977
|
-
n0 = _tuple$4[0];
|
|
125978
|
-
err$1 = _tuple$4[1];
|
|
125979
|
-
n = (x$6 = n0, new $Int64(n.$high + x$6.$high, n.$low + x$6.$low));
|
|
125980
|
-
w.written = (x$7 = w.written, x$8 = n0, new $Int64(x$7.$high + x$8.$high, x$7.$low + x$8.$low));
|
|
126003
|
+
/* if (!w.cw.chunking && w.bodyAllowed()) { */ case 10:
|
|
126004
|
+
_r$6 = rf.ReadFrom(src); /* */ $s = 12; case 12: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
126005
|
+
_tuple$3 = _r$6;
|
|
126006
|
+
n0$1 = _tuple$3[0];
|
|
126007
|
+
err$2 = _tuple$3[1];
|
|
126008
|
+
n = (x$7 = n0$1, new $Int64(n.$high + x$7.$high, n.$low + x$7.$low));
|
|
126009
|
+
w.written = (x$8 = w.written, x$9 = n0$1, new $Int64(x$8.$high + x$9.$high, x$8.$low + x$9.$low));
|
|
125981
126010
|
_tmp$2 = n;
|
|
125982
|
-
_tmp$3 = err$
|
|
126011
|
+
_tmp$3 = err$2;
|
|
125983
126012
|
n = _tmp$2;
|
|
125984
126013
|
err = _tmp$3;
|
|
125985
126014
|
$s = -1; return [n, err];
|
|
125986
|
-
/* } */ case
|
|
125987
|
-
_r$
|
|
125988
|
-
_tuple$
|
|
125989
|
-
n0$
|
|
125990
|
-
err = _tuple$
|
|
125991
|
-
n = (x$
|
|
126015
|
+
/* } */ case 11:
|
|
126016
|
+
_r$7 = io.CopyBuffer((x$10 = new writerOnly.ptr(w), new x$10.constructor.elem(x$10)), src, buf); /* */ $s = 13; case 13: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
126017
|
+
_tuple$4 = _r$7;
|
|
126018
|
+
n0$2 = _tuple$4[0];
|
|
126019
|
+
err = _tuple$4[1];
|
|
126020
|
+
n = (x$11 = n0$2, new $Int64(n.$high + x$11.$high, n.$low + x$11.$low));
|
|
125992
126021
|
_tmp$4 = n;
|
|
125993
126022
|
_tmp$5 = err;
|
|
125994
126023
|
n = _tmp$4;
|
|
125995
126024
|
err = _tmp$5;
|
|
125996
126025
|
$s = -1; return [n, err];
|
|
125997
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return [n, err]; } if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: response.ptr.prototype.ReadFrom }; } $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.
|
|
126026
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return [n, err]; } if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: response.ptr.prototype.ReadFrom }; } $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._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tmp$2 = _tmp$2; $f._tmp$3 = _tmp$3; $f._tmp$4 = _tmp$4; $f._tmp$5 = _tmp$5; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f._tuple$3 = _tuple$3; $f._tuple$4 = _tuple$4; $f.buf = buf; $f.bufp = bufp; $f.err = err; $f.err$1 = err$1; $f.err$2 = err$2; $f.n = n; $f.n0 = n0; $f.n0$1 = n0$1; $f.n0$2 = n0$2; $f.ok = ok; $f.rf = rf; $f.src = src; $f.w = w; $f.x$10 = x$10; $f.x$11 = x$11; $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.x$9 = x$9; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
125998
126027
|
};
|
|
125999
126028
|
response.prototype.ReadFrom = function(src) { return this.$val.ReadFrom(src); };
|
|
126000
126029
|
Server.ptr.prototype.newConn = function(rwc) {
|
|
126001
126030
|
var _r$2, c, rwc, srv, $s, $r;
|
|
126002
126031
|
/* */ $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:
|
|
126003
126032
|
srv = this;
|
|
126004
|
-
c = new conn.ptr(srv, $throwNilPointerError, rwc, "", ptrType$21.nil, $ifaceNil, ptrType$
|
|
126033
|
+
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);
|
|
126005
126034
|
/* */ if (false) { $s = 1; continue; }
|
|
126006
126035
|
/* */ $s = 2; continue;
|
|
126007
126036
|
/* if (false) { */ case 1:
|
|
@@ -126017,7 +126046,7 @@ $packages["net/http"] = (function() {
|
|
|
126017
126046
|
/* */ $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:
|
|
126018
126047
|
cr = this;
|
|
126019
126048
|
$r = cr.mu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126020
|
-
if (cr.cond === ptrType$
|
|
126049
|
+
if (cr.cond === ptrType$73.nil) {
|
|
126021
126050
|
cr.cond = sync.NewCond(cr.mu);
|
|
126022
126051
|
}
|
|
126023
126052
|
$s = -1; return;
|
|
@@ -126141,11 +126170,11 @@ $packages["net/http"] = (function() {
|
|
|
126141
126170
|
var _tuple, cr, res, $s, $r;
|
|
126142
126171
|
/* */ $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:
|
|
126143
126172
|
cr = this;
|
|
126144
|
-
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$
|
|
126173
|
+
_tuple = $assertType(cr.conn.curReq.Load(), ptrType$95, true);
|
|
126145
126174
|
res = _tuple[0];
|
|
126146
|
-
/* */ if (!(res === ptrType$
|
|
126175
|
+
/* */ 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; }
|
|
126147
126176
|
/* */ $s = 2; continue;
|
|
126148
|
-
/* if (!(res === ptrType$
|
|
126177
|
+
/* 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:
|
|
126149
126178
|
$r = $send(res.closeNotifyCh, true); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126150
126179
|
/* } */ case 2:
|
|
126151
126180
|
$s = -1; return;
|
|
@@ -126238,7 +126267,7 @@ $packages["net/http"] = (function() {
|
|
|
126238
126267
|
} else if (_1 === (4096)) {
|
|
126239
126268
|
return bufioWriter4kPool;
|
|
126240
126269
|
}
|
|
126241
|
-
return ptrType$
|
|
126270
|
+
return ptrType$96.nil;
|
|
126242
126271
|
};
|
|
126243
126272
|
newBufioReader = function(r) {
|
|
126244
126273
|
var _r$2, br, r, v, $s, $r;
|
|
@@ -126246,7 +126275,7 @@ $packages["net/http"] = (function() {
|
|
|
126246
126275
|
_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; }
|
|
126247
126276
|
v = _r$2;
|
|
126248
126277
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
126249
|
-
br = $assertType(v, ptrType$
|
|
126278
|
+
br = $assertType(v, ptrType$77);
|
|
126250
126279
|
br.Reset(r);
|
|
126251
126280
|
$s = -1; return br;
|
|
126252
126281
|
}
|
|
@@ -126262,9 +126291,9 @@ $packages["net/http"] = (function() {
|
|
|
126262
126291
|
var _r$2, bw, pool, size, v, w, $s, $r;
|
|
126263
126292
|
/* */ $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:
|
|
126264
126293
|
pool = bufioWriterPool(size);
|
|
126265
|
-
/* */ if (!(pool === ptrType$
|
|
126294
|
+
/* */ if (!(pool === ptrType$96.nil)) { $s = 1; continue; }
|
|
126266
126295
|
/* */ $s = 2; continue;
|
|
126267
|
-
/* if (!(pool === ptrType$
|
|
126296
|
+
/* if (!(pool === ptrType$96.nil)) { */ case 1:
|
|
126268
126297
|
_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; }
|
|
126269
126298
|
v = _r$2;
|
|
126270
126299
|
if (!($interfaceIsEqual(v, $ifaceNil))) {
|
|
@@ -126280,7 +126309,7 @@ $packages["net/http"] = (function() {
|
|
|
126280
126309
|
var bw, pool;
|
|
126281
126310
|
bw.Reset($ifaceNil);
|
|
126282
126311
|
pool = bufioWriterPool(bw.Available());
|
|
126283
|
-
if (!(pool === ptrType$
|
|
126312
|
+
if (!(pool === ptrType$96.nil)) {
|
|
126284
126313
|
pool.Put(bw);
|
|
126285
126314
|
}
|
|
126286
126315
|
};
|
|
@@ -126378,14 +126407,14 @@ $packages["net/http"] = (function() {
|
|
|
126378
126407
|
/* */ $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);
|
|
126379
126408
|
c = [c];
|
|
126380
126409
|
d = [d];
|
|
126381
|
-
w = ptrType$
|
|
126410
|
+
w = ptrType$95.nil;
|
|
126382
126411
|
err = $ifaceNil;
|
|
126383
126412
|
c[0] = this;
|
|
126384
126413
|
_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; }
|
|
126385
126414
|
/* */ if (_r$2) { $s = 1; continue; }
|
|
126386
126415
|
/* */ $s = 2; continue;
|
|
126387
126416
|
/* if (_r$2) { */ case 1:
|
|
126388
|
-
_tmp = ptrType$
|
|
126417
|
+
_tmp = ptrType$95.nil;
|
|
126389
126418
|
_tmp$1 = $pkg.ErrHijacked;
|
|
126390
126419
|
w = _tmp;
|
|
126391
126420
|
err = _tmp$1;
|
|
@@ -126433,20 +126462,20 @@ $packages["net/http"] = (function() {
|
|
|
126433
126462
|
err = _tuple$1[1];
|
|
126434
126463
|
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
126435
126464
|
if (c[0].r.hitReadLimit()) {
|
|
126436
|
-
_tmp$2 = ptrType$
|
|
126465
|
+
_tmp$2 = ptrType$95.nil;
|
|
126437
126466
|
_tmp$3 = errTooLarge;
|
|
126438
126467
|
w = _tmp$2;
|
|
126439
126468
|
err = _tmp$3;
|
|
126440
126469
|
$s = -1; return [w, err];
|
|
126441
126470
|
}
|
|
126442
|
-
_tmp$4 = ptrType$
|
|
126471
|
+
_tmp$4 = ptrType$95.nil;
|
|
126443
126472
|
_tmp$5 = err;
|
|
126444
126473
|
w = _tmp$4;
|
|
126445
126474
|
err = _tmp$5;
|
|
126446
126475
|
$s = -1; return [w, err];
|
|
126447
126476
|
}
|
|
126448
126477
|
if (!http1ServerSupportsRequest(req)) {
|
|
126449
|
-
_tmp$6 = ptrType$
|
|
126478
|
+
_tmp$6 = ptrType$95.nil;
|
|
126450
126479
|
_tmp$7 = (x$4 = new statusError.ptr(505, "unsupported protocol version"), new x$4.constructor.elem(x$4));
|
|
126451
126480
|
w = _tmp$6;
|
|
126452
126481
|
err = _tmp$7;
|
|
@@ -126459,21 +126488,21 @@ $packages["net/http"] = (function() {
|
|
|
126459
126488
|
haveHost = _tuple$2[1];
|
|
126460
126489
|
isH2Upgrade = req.isH2Upgrade();
|
|
126461
126490
|
if (req.ProtoAtLeast(1, 1) && (!haveHost || (hosts.$length === 0)) && !isH2Upgrade && !(req.Method === "CONNECT")) {
|
|
126462
|
-
_tmp$8 = ptrType$
|
|
126491
|
+
_tmp$8 = ptrType$95.nil;
|
|
126463
126492
|
_tmp$9 = badRequestError("missing required Host header");
|
|
126464
126493
|
w = _tmp$8;
|
|
126465
126494
|
err = _tmp$9;
|
|
126466
126495
|
$s = -1; return [w, err];
|
|
126467
126496
|
}
|
|
126468
126497
|
if (hosts.$length > 1) {
|
|
126469
|
-
_tmp$10 = ptrType$
|
|
126498
|
+
_tmp$10 = ptrType$95.nil;
|
|
126470
126499
|
_tmp$11 = badRequestError("too many Host headers");
|
|
126471
126500
|
w = _tmp$10;
|
|
126472
126501
|
err = _tmp$11;
|
|
126473
126502
|
$s = -1; return [w, err];
|
|
126474
126503
|
}
|
|
126475
126504
|
if ((hosts.$length === 1) && !httpguts.ValidHostHeader((0 >= hosts.$length ? ($throwRuntimeError("index out of range"), undefined) : hosts.$array[hosts.$offset + 0]))) {
|
|
126476
|
-
_tmp$12 = ptrType$
|
|
126505
|
+
_tmp$12 = ptrType$95.nil;
|
|
126477
126506
|
_tmp$13 = badRequestError("malformed Host header");
|
|
126478
126507
|
w = _tmp$12;
|
|
126479
126508
|
err = _tmp$13;
|
|
@@ -126492,7 +126521,7 @@ $packages["net/http"] = (function() {
|
|
|
126492
126521
|
k = _entry$1.k;
|
|
126493
126522
|
vv = _entry$1.v;
|
|
126494
126523
|
if (!httpguts.ValidHeaderFieldName(k)) {
|
|
126495
|
-
_tmp$14 = ptrType$
|
|
126524
|
+
_tmp$14 = ptrType$95.nil;
|
|
126496
126525
|
_tmp$15 = badRequestError("invalid header name");
|
|
126497
126526
|
w = _tmp$14;
|
|
126498
126527
|
err = _tmp$15;
|
|
@@ -126504,7 +126533,7 @@ $packages["net/http"] = (function() {
|
|
|
126504
126533
|
if (!(_i$1 < _ref$1.$length)) { break; }
|
|
126505
126534
|
v = ((_i$1 < 0 || _i$1 >= _ref$1.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref$1.$array[_ref$1.$offset + _i$1]);
|
|
126506
126535
|
if (!httpguts.ValidHeaderFieldValue(v)) {
|
|
126507
|
-
_tmp$16 = ptrType$
|
|
126536
|
+
_tmp$16 = ptrType$95.nil;
|
|
126508
126537
|
_tmp$17 = badRequestError("invalid header value");
|
|
126509
126538
|
w = _tmp$16;
|
|
126510
126539
|
err = _tmp$17;
|
|
@@ -126522,7 +126551,7 @@ $packages["net/http"] = (function() {
|
|
|
126522
126551
|
req.ctx = ctx;
|
|
126523
126552
|
req.RemoteAddr = c[0].remoteAddr;
|
|
126524
126553
|
req.TLS = c[0].tlsState;
|
|
126525
|
-
_tuple$4 = $assertType(req.Body, ptrType$
|
|
126554
|
+
_tuple$4 = $assertType(req.Body, ptrType$97, true);
|
|
126526
126555
|
body$1 = _tuple$4[0];
|
|
126527
126556
|
ok = _tuple$4[1];
|
|
126528
126557
|
if (ok) {
|
|
@@ -126534,7 +126563,7 @@ $packages["net/http"] = (function() {
|
|
|
126534
126563
|
_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; }
|
|
126535
126564
|
_r$8;
|
|
126536
126565
|
/* } */ case 14:
|
|
126537
|
-
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$
|
|
126566
|
+
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);
|
|
126538
126567
|
if (isH2Upgrade) {
|
|
126539
126568
|
w.closeAfterReply = true;
|
|
126540
126569
|
}
|
|
@@ -126586,7 +126615,7 @@ $packages["net/http"] = (function() {
|
|
|
126586
126615
|
pc = $makeSlice(sliceType$27, 16);
|
|
126587
126616
|
n = runtime.Callers(1, pc);
|
|
126588
126617
|
frames = runtime.CallersFrames($subslice(pc, 0, n));
|
|
126589
|
-
frame = new runtime.Frame.ptr(0, ptrType$
|
|
126618
|
+
frame = new runtime.Frame.ptr(0, ptrType$99.nil, "", "", 0, 0);
|
|
126590
126619
|
while (true) {
|
|
126591
126620
|
_tuple = frames.Next();
|
|
126592
126621
|
frame$1 = $clone(_tuple[0], runtime.Frame);
|
|
@@ -126791,7 +126820,7 @@ $packages["net/http"] = (function() {
|
|
|
126791
126820
|
if (new Header(header[0]).get("Connection") === "close" || !keepAlivesEnabled) {
|
|
126792
126821
|
w.closeAfterReply = true;
|
|
126793
126822
|
}
|
|
126794
|
-
_tuple$1 = $assertType(w.req.Body, ptrType$
|
|
126823
|
+
_tuple$1 = $assertType(w.req.Body, ptrType$100, true);
|
|
126795
126824
|
ecr = _tuple$1[0];
|
|
126796
126825
|
ok = _tuple$1[1];
|
|
126797
126826
|
if (ok && !(ecr.$ptr_sawEOF || (ecr.$ptr_sawEOF = new ptrType$24(function() { return this.$target.sawEOF; }, function($v) { this.$target.sawEOF = $v; }, ecr))).isSet()) {
|
|
@@ -126805,16 +126834,16 @@ $packages["net/http"] = (function() {
|
|
|
126805
126834
|
discard = _tmp;
|
|
126806
126835
|
tooBig = _tmp$1;
|
|
126807
126836
|
_ref$2 = w.req.Body;
|
|
126808
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
126809
|
-
/* */ if ($assertType(_ref$2, ptrType$
|
|
126837
|
+
/* */ if ($assertType(_ref$2, ptrType$100, true)[1]) { $s = 6; continue; }
|
|
126838
|
+
/* */ if ($assertType(_ref$2, ptrType$97, true)[1]) { $s = 7; continue; }
|
|
126810
126839
|
/* */ $s = 8; continue;
|
|
126811
|
-
/* if ($assertType(_ref$2, ptrType$
|
|
126840
|
+
/* if ($assertType(_ref$2, ptrType$100, true)[1]) { */ case 6:
|
|
126812
126841
|
bdy = _ref$2.$val;
|
|
126813
126842
|
if (bdy.resp.wroteContinue) {
|
|
126814
126843
|
discard = true;
|
|
126815
126844
|
}
|
|
126816
126845
|
$s = 9; continue;
|
|
126817
|
-
/* } else if ($assertType(_ref$2, ptrType$
|
|
126846
|
+
/* } else if ($assertType(_ref$2, ptrType$97, true)[1]) { */ case 7:
|
|
126818
126847
|
bdy$1 = _ref$2.$val;
|
|
126819
126848
|
$r = bdy$1.mu.Lock(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126820
126849
|
if (bdy$1.closed) {
|
|
@@ -126907,27 +126936,25 @@ $packages["net/http"] = (function() {
|
|
|
126907
126936
|
$r = delHeader("Content-Length"); /* */ $s = 42; case 42: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126908
126937
|
hasCL = false;
|
|
126909
126938
|
/* } */ case 40:
|
|
126910
|
-
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code)) { $s = 43; continue; }
|
|
126911
|
-
/* */ if (
|
|
126912
|
-
/* */ if (
|
|
126913
|
-
/* */
|
|
126914
|
-
/*
|
|
126915
|
-
|
|
126916
|
-
$s =
|
|
126917
|
-
/* } else if (
|
|
126939
|
+
/* */ if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { $s = 43; continue; }
|
|
126940
|
+
/* */ if (hasCL) { $s = 44; continue; }
|
|
126941
|
+
/* */ if (w.req.ProtoAtLeast(1, 1)) { $s = 45; continue; }
|
|
126942
|
+
/* */ $s = 46; continue;
|
|
126943
|
+
/* if (w.req.Method === "HEAD" || !bodyAllowedForStatus(code) || (code === 204)) { */ case 43:
|
|
126944
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 48; case 48: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126945
|
+
$s = 47; continue;
|
|
126946
|
+
/* } else if (hasCL) { */ case 44:
|
|
126918
126947
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 49; case 49: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126919
|
-
$s =
|
|
126920
|
-
/* } else if (
|
|
126921
|
-
|
|
126922
|
-
$s =
|
|
126923
|
-
|
|
126924
|
-
/* */ if (hasTE && te === "identity") { $s = 51; continue; }
|
|
126925
|
-
/* */ $s = 52; continue;
|
|
126926
|
-
/* if (hasTE && te === "identity") { */ case 51:
|
|
126948
|
+
$s = 47; continue;
|
|
126949
|
+
/* } else if (w.req.ProtoAtLeast(1, 1)) { */ case 45:
|
|
126950
|
+
/* */ if (hasTE && te === "identity") { $s = 50; continue; }
|
|
126951
|
+
/* */ $s = 51; continue;
|
|
126952
|
+
/* if (hasTE && te === "identity") { */ case 50:
|
|
126927
126953
|
cw.chunking = false;
|
|
126928
126954
|
w.closeAfterReply = true;
|
|
126929
|
-
$s = 53;
|
|
126930
|
-
|
|
126955
|
+
$r = delHeader("Transfer-Encoding"); /* */ $s = 53; case 53: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126956
|
+
$s = 52; continue;
|
|
126957
|
+
/* } else { */ case 51:
|
|
126931
126958
|
cw.chunking = true;
|
|
126932
126959
|
setHeader.transferEncoding = "chunked";
|
|
126933
126960
|
/* */ if (hasTE && te === "chunked") { $s = 54; continue; }
|
|
@@ -126935,12 +126962,12 @@ $packages["net/http"] = (function() {
|
|
|
126935
126962
|
/* if (hasTE && te === "chunked") { */ case 54:
|
|
126936
126963
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 56; case 56: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126937
126964
|
/* } */ case 55:
|
|
126938
|
-
/* } */ case
|
|
126939
|
-
$s =
|
|
126940
|
-
/* } else { */ case
|
|
126965
|
+
/* } */ case 52:
|
|
126966
|
+
$s = 47; continue;
|
|
126967
|
+
/* } else { */ case 46:
|
|
126941
126968
|
w.closeAfterReply = true;
|
|
126942
126969
|
$r = delHeader("Transfer-Encoding"); /* */ $s = 57; case 57: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
126943
|
-
/* } */ case
|
|
126970
|
+
/* } */ case 47:
|
|
126944
126971
|
/* */ if (cw.chunking) { $s = 58; continue; }
|
|
126945
126972
|
/* */ $s = 59; continue;
|
|
126946
126973
|
/* if (cw.chunking) { */ case 58:
|
|
@@ -127203,7 +127230,7 @@ $packages["net/http"] = (function() {
|
|
|
127203
127230
|
var _r$2, _tuple, _v, body$1, ok, w, $s, $r;
|
|
127204
127231
|
/* */ $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:
|
|
127205
127232
|
w = this;
|
|
127206
|
-
_tuple = $assertType(w.req.Body, ptrType$
|
|
127233
|
+
_tuple = $assertType(w.req.Body, ptrType$97, true);
|
|
127207
127234
|
body$1 = _tuple[0];
|
|
127208
127235
|
ok = _tuple[1];
|
|
127209
127236
|
if (!(ok)) { _v = false; $s = 1; continue s; }
|
|
@@ -127233,9 +127260,9 @@ $packages["net/http"] = (function() {
|
|
|
127233
127260
|
var _r$2, c, $s, $r;
|
|
127234
127261
|
/* */ $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:
|
|
127235
127262
|
c = this;
|
|
127236
|
-
if (!(c.bufr === ptrType$
|
|
127263
|
+
if (!(c.bufr === ptrType$77.nil)) {
|
|
127237
127264
|
putBufioReader(c.bufr);
|
|
127238
|
-
c.bufr = ptrType$
|
|
127265
|
+
c.bufr = ptrType$77.nil;
|
|
127239
127266
|
}
|
|
127240
127267
|
/* */ if (!(c.bufw === ptrType$9.nil)) { $s = 1; continue; }
|
|
127241
127268
|
/* */ $s = 2; continue;
|
|
@@ -127307,7 +127334,7 @@ $packages["net/http"] = (function() {
|
|
|
127307
127334
|
$panic(new $String("internal error"));
|
|
127308
127335
|
}
|
|
127309
127336
|
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));
|
|
127310
|
-
atomic.StoreUint64((x$7 = c.curState, (x$7.$ptr_atomic || (x$7.$ptr_atomic = new ptrType$
|
|
127337
|
+
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);
|
|
127311
127338
|
if (!runHook) {
|
|
127312
127339
|
$s = -1; return;
|
|
127313
127340
|
}
|
|
@@ -127326,7 +127353,7 @@ $packages["net/http"] = (function() {
|
|
|
127326
127353
|
state = 0;
|
|
127327
127354
|
unixSec = new $Int64(0, 0);
|
|
127328
127355
|
c = this;
|
|
127329
|
-
packedState = atomic.LoadUint64((x$4 = c.curState, (x$4.$ptr_atomic || (x$4.$ptr_atomic = new ptrType$
|
|
127356
|
+
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)))));
|
|
127330
127357
|
_tmp = ((new $Uint64(packedState.$high & 0, (packedState.$low & 255) >>> 0).$low >> 0));
|
|
127331
127358
|
_tmp$1 = ((x$5 = $shiftRightUint64(packedState, 8), new $Int64(x$5.$high, x$5.$low)));
|
|
127332
127359
|
state = _tmp;
|
|
@@ -127405,7 +127432,7 @@ $packages["net/http"] = (function() {
|
|
|
127405
127432
|
$s = -1; return;
|
|
127406
127433
|
/* */ } 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;
|
|
127407
127434
|
}; })(c), []]);
|
|
127408
|
-
_tuple = $assertType(c[0].rwc, ptrType$
|
|
127435
|
+
_tuple = $assertType(c[0].rwc, ptrType$76, true);
|
|
127409
127436
|
tlsConn = _tuple[0];
|
|
127410
127437
|
ok = _tuple[1];
|
|
127411
127438
|
/* */ if (ok) { $s = 5; continue; }
|
|
@@ -127472,7 +127499,7 @@ $packages["net/http"] = (function() {
|
|
|
127472
127499
|
cancelCtx = _tuple$2[1];
|
|
127473
127500
|
c[0].cancelCtx = cancelCtx;
|
|
127474
127501
|
$deferred.push([cancelCtx, []]);
|
|
127475
|
-
c[0].r = new connReader.ptr(c[0], new sync.Mutex.ptr(0, 0), false, arrayType$6.zero(), ptrType$
|
|
127502
|
+
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));
|
|
127476
127503
|
_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; }
|
|
127477
127504
|
c[0].bufr = _r$14;
|
|
127478
127505
|
_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; }
|
|
@@ -127573,7 +127600,7 @@ $packages["net/http"] = (function() {
|
|
|
127573
127600
|
$s = -1; return;
|
|
127574
127601
|
/* } */ case 71:
|
|
127575
127602
|
$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; }
|
|
127576
|
-
c[0].curReq.Store((ptrType$
|
|
127603
|
+
c[0].curReq.Store((ptrType$95.nil));
|
|
127577
127604
|
if (!w.conn.server.doKeepAlives()) {
|
|
127578
127605
|
$s = -1; return;
|
|
127579
127606
|
}
|
|
@@ -127612,7 +127639,7 @@ $packages["net/http"] = (function() {
|
|
|
127612
127639
|
var _r$2, _tmp, _tmp$1, _tmp$2, _tuple, buf, c, err, rwc, w, $s, $deferred, $r;
|
|
127613
127640
|
/* */ $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);
|
|
127614
127641
|
rwc = $ifaceNil;
|
|
127615
|
-
buf = ptrType$
|
|
127642
|
+
buf = ptrType$92.nil;
|
|
127616
127643
|
err = $ifaceNil;
|
|
127617
127644
|
w = this;
|
|
127618
127645
|
if ((w.$ptr_handlerDone || (w.$ptr_handlerDone = new ptrType$24(function() { return this.$target.handlerDone; }, function($v) { this.$target.handlerDone = $v; }, w))).isSet()) {
|
|
@@ -127658,14 +127685,14 @@ $packages["net/http"] = (function() {
|
|
|
127658
127685
|
var _r$2, _ref, fn, rc, v, v$1, v$2, $s, $r;
|
|
127659
127686
|
/* */ $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:
|
|
127660
127687
|
_ref = rc;
|
|
127661
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
127662
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
127688
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
127689
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
127663
127690
|
/* */ $s = 3; continue;
|
|
127664
|
-
/* if ($assertType(_ref, ptrType$
|
|
127691
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
127665
127692
|
v = _ref.$val;
|
|
127666
127693
|
$r = registerOnHitEOF(v.readCloser, fn); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
127667
127694
|
$s = 4; continue;
|
|
127668
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
127695
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
127669
127696
|
v$1 = _ref.$val;
|
|
127670
127697
|
$r = v$1.registerOnHitEOF(fn); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
127671
127698
|
$s = 4; continue;
|
|
@@ -127684,14 +127711,14 @@ $packages["net/http"] = (function() {
|
|
|
127684
127711
|
$s = -1; return false;
|
|
127685
127712
|
}
|
|
127686
127713
|
_ref = rc;
|
|
127687
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
127688
|
-
/* */ if ($assertType(_ref, ptrType$
|
|
127714
|
+
/* */ if ($assertType(_ref, ptrType$100, true)[1]) { $s = 1; continue; }
|
|
127715
|
+
/* */ if ($assertType(_ref, ptrType$97, true)[1]) { $s = 2; continue; }
|
|
127689
127716
|
/* */ $s = 3; continue;
|
|
127690
|
-
/* if ($assertType(_ref, ptrType$
|
|
127717
|
+
/* if ($assertType(_ref, ptrType$100, true)[1]) { */ case 1:
|
|
127691
127718
|
v = _ref.$val;
|
|
127692
127719
|
_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; }
|
|
127693
127720
|
$s = -1; return _r$2;
|
|
127694
|
-
/* } else if ($assertType(_ref, ptrType$
|
|
127721
|
+
/* } else if ($assertType(_ref, ptrType$97, true)[1]) { */ case 2:
|
|
127695
127722
|
v$1 = _ref.$val;
|
|
127696
127723
|
_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; }
|
|
127697
127724
|
$s = -1; return _r$3;
|
|
@@ -128173,7 +128200,7 @@ $packages["net/http"] = (function() {
|
|
|
128173
128200
|
c = _entry.k;
|
|
128174
128201
|
_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; }
|
|
128175
128202
|
_r$3;
|
|
128176
|
-
delete srv.activeConn[ptrType$
|
|
128203
|
+
delete srv.activeConn[ptrType$98.keyFor(c)];
|
|
128177
128204
|
_i++;
|
|
128178
128205
|
/* } */ $s = 3; continue; case 4:
|
|
128179
128206
|
$s = -1; return err;
|
|
@@ -128299,7 +128326,7 @@ $packages["net/http"] = (function() {
|
|
|
128299
128326
|
/* } */ case 5:
|
|
128300
128327
|
_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; }
|
|
128301
128328
|
_r$2;
|
|
128302
|
-
delete s.activeConn[ptrType$
|
|
128329
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
128303
128330
|
_i++;
|
|
128304
128331
|
/* } */ $s = 2; continue; case 3:
|
|
128305
128332
|
$s = -1; return quiescent;
|
|
@@ -128553,9 +128580,9 @@ $packages["net/http"] = (function() {
|
|
|
128553
128580
|
s.activeConn = {};
|
|
128554
128581
|
}
|
|
128555
128582
|
if (add) {
|
|
128556
|
-
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$
|
|
128583
|
+
_key = c; (s.activeConn || $throwRuntimeError("assignment to entry in nil map"))[ptrType$98.keyFor(_key)] = { k: _key, v: new structType.ptr() };
|
|
128557
128584
|
} else {
|
|
128558
|
-
delete s.activeConn[ptrType$
|
|
128585
|
+
delete s.activeConn[ptrType$98.keyFor(c)];
|
|
128559
128586
|
}
|
|
128560
128587
|
$s = -1; return;
|
|
128561
128588
|
/* */ } 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; } }
|
|
@@ -128582,7 +128609,7 @@ $packages["net/http"] = (function() {
|
|
|
128582
128609
|
Server.ptr.prototype.doKeepAlives = function() {
|
|
128583
128610
|
var s;
|
|
128584
128611
|
s = this;
|
|
128585
|
-
return (atomic.LoadInt32((s.$ptr_disableKeepAlives || (s.$ptr_disableKeepAlives = new ptrType$
|
|
128612
|
+
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();
|
|
128586
128613
|
};
|
|
128587
128614
|
Server.prototype.doKeepAlives = function() { return this.$val.doKeepAlives(); };
|
|
128588
128615
|
Server.ptr.prototype.shuttingDown = function() {
|
|
@@ -128596,10 +128623,10 @@ $packages["net/http"] = (function() {
|
|
|
128596
128623
|
/* */ $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:
|
|
128597
128624
|
srv = this;
|
|
128598
128625
|
if (v) {
|
|
128599
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
128626
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 0);
|
|
128600
128627
|
$s = -1; return;
|
|
128601
128628
|
}
|
|
128602
|
-
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$
|
|
128629
|
+
atomic.StoreInt32((srv.$ptr_disableKeepAlives || (srv.$ptr_disableKeepAlives = new ptrType$93(function() { return this.$target.disableKeepAlives; }, function($v) { this.$target.disableKeepAlives = $v; }, srv))), 1);
|
|
128603
128630
|
_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; }
|
|
128604
128631
|
_r$2;
|
|
128605
128632
|
$s = -1; return;
|
|
@@ -128694,7 +128721,7 @@ $packages["net/http"] = (function() {
|
|
|
128694
128721
|
/* */ $s = 7; continue;
|
|
128695
128722
|
/* if (srv.TLSNextProto === false) { */ case 6:
|
|
128696
128723
|
conf = new http2Server.ptr(0, 0, 0, false, new time.Duration(0, 0), 0, 0, (function() {
|
|
128697
|
-
return http2NewPriorityWriteScheduler(ptrType$
|
|
128724
|
+
return http2NewPriorityWriteScheduler(ptrType$82.nil);
|
|
128698
128725
|
}), ptrType$50.nil);
|
|
128699
128726
|
_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; }
|
|
128700
128727
|
srv.nextProtoErr = _r$4;
|
|
@@ -129651,9 +129678,9 @@ $packages["net/http"] = (function() {
|
|
|
129651
129678
|
} else if ((realLength.$high === 0 && realLength.$low === 0)) {
|
|
129652
129679
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
129653
129680
|
} else if ((realLength.$high > 0 || (realLength.$high === 0 && realLength.$low > 0))) {
|
|
129654
|
-
t.Body = new body.ptr(io.LimitReader(r, realLength), $ifaceNil, ptrType$
|
|
129681
|
+
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);
|
|
129655
129682
|
} else if (t.Close) {
|
|
129656
|
-
t.Body = new body.ptr(r, $ifaceNil, ptrType$
|
|
129683
|
+
t.Body = new body.ptr(r, $ifaceNil, ptrType$77.nil, t.Close, false, new sync.Mutex.ptr(0, 0), false, false, false, $throwNilPointerError);
|
|
129657
129684
|
} else {
|
|
129658
129685
|
t.Body = new $pkg.NoBody.constructor.elem($pkg.NoBody);
|
|
129659
129686
|
}
|
|
@@ -130026,10 +130053,10 @@ $packages["net/http"] = (function() {
|
|
|
130026
130053
|
_ref = b.hdr;
|
|
130027
130054
|
if ($assertType(_ref, ptrType$6, true)[1]) {
|
|
130028
130055
|
rr = _ref.$val;
|
|
130029
|
-
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$
|
|
130056
|
+
mergeSetHeader((rr.$ptr_Trailer || (rr.$ptr_Trailer = new ptrType$78(function() { return this.$target.Trailer; }, function($v) { this.$target.Trailer = $v; }, rr))), (hdr));
|
|
130030
130057
|
} else if ($assertType(_ref, ptrType$18, true)[1]) {
|
|
130031
130058
|
rr$1 = _ref.$val;
|
|
130032
|
-
mergeSetHeader((rr$1.$ptr_Trailer || (rr$1.$ptr_Trailer = new ptrType$
|
|
130059
|
+
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));
|
|
130033
130060
|
}
|
|
130034
130061
|
$s = -1; return $ifaceNil;
|
|
130035
130062
|
/* */ } 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;
|
|
@@ -130218,7 +130245,7 @@ $packages["net/http"] = (function() {
|
|
|
130218
130245
|
var _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _ref, _tuple, ok, r, r$1, $s, $r;
|
|
130219
130246
|
/* */ $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:
|
|
130220
130247
|
_ref = r;
|
|
130221
|
-
if ($assertType(_ref, ptrType$
|
|
130248
|
+
if ($assertType(_ref, ptrType$88, true)[1] || $assertType(_ref, ptrType$38, true)[1] || $assertType(_ref, ptrType$89, true)[1]) {
|
|
130222
130249
|
$s = -1; return true;
|
|
130223
130250
|
}
|
|
130224
130251
|
_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; }
|
|
@@ -130336,7 +130363,7 @@ $packages["net/http"] = (function() {
|
|
|
130336
130363
|
ptrType$69.methods = [{prop: "Init", name: "Init", pkg: "", typ: $funcType([], [], false)}];
|
|
130337
130364
|
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)}];
|
|
130338
130365
|
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)}];
|
|
130339
|
-
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)}];
|
|
130366
|
+
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)}];
|
|
130340
130367
|
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)}];
|
|
130341
130368
|
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)}];
|
|
130342
130369
|
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)}];
|
|
@@ -130359,33 +130386,33 @@ $packages["net/http"] = (function() {
|
|
|
130359
130386
|
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)}];
|
|
130360
130387
|
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)}];
|
|
130361
130388
|
ptrType$124.methods = [{prop: "replyToWriter", name: "replyToWriter", pkg: "net/http", typ: $funcType([$error], [], false)}];
|
|
130362
|
-
ptrType$
|
|
130363
|
-
ptrType$
|
|
130364
|
-
ptrType$
|
|
130389
|
+
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)}];
|
|
130390
|
+
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)}];
|
|
130391
|
+
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)}];
|
|
130365
130392
|
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)}];
|
|
130366
|
-
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$
|
|
130393
|
+
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)}];
|
|
130367
130394
|
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)}];
|
|
130368
|
-
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$
|
|
130395
|
+
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)}];
|
|
130369
130396
|
stringWriter.methods = [{prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}];
|
|
130370
|
-
ptrType$
|
|
130397
|
+
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)}];
|
|
130371
130398
|
ptrType$127.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
130372
130399
|
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)}];
|
|
130373
130400
|
ptrType$128.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
130374
|
-
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$
|
|
130375
|
-
ptrType$
|
|
130401
|
+
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)}];
|
|
130402
|
+
ptrType$91.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
130376
130403
|
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)}];
|
|
130377
|
-
ptrType$
|
|
130404
|
+
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)}];
|
|
130378
130405
|
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)}];
|
|
130379
|
-
ptrType$
|
|
130406
|
+
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)}];
|
|
130380
130407
|
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)}];
|
|
130381
|
-
ptrType$
|
|
130382
|
-
ptrType$
|
|
130408
|
+
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)}];
|
|
130409
|
+
ptrType$100.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}];
|
|
130383
130410
|
extraHeader.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([ptrType$9], [], false)}];
|
|
130384
130411
|
statusError.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
130385
130412
|
HandlerFunc.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
130386
130413
|
ptrType$132.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
130387
130414
|
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)}];
|
|
130388
|
-
ptrType$51.methods = [{prop: "newConn", name: "newConn", pkg: "net/http", typ: $funcType([net.Conn], [ptrType$
|
|
130415
|
+
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)}];
|
|
130389
130416
|
ConnState.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
130390
130417
|
serverHandler.methods = [{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}];
|
|
130391
130418
|
ptrType$135.methods = [{prop: "Close", name: "Close", pkg: "", typ: $funcType([], [$error], false)}, {prop: "close", name: "close", pkg: "net/http", typ: $funcType([], [], false)}];
|
|
@@ -130403,7 +130430,7 @@ $packages["net/http"] = (function() {
|
|
|
130403
130430
|
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)}];
|
|
130404
130431
|
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)}];
|
|
130405
130432
|
ptrType$107.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
130406
|
-
ptrType$
|
|
130433
|
+
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)}];
|
|
130407
130434
|
bodyLocked.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
130408
130435
|
finishAsyncByteRead.methods = [{prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
130409
130436
|
bufioFlushWriter.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$4], [$Int, $error], false)}];
|
|
@@ -130473,10 +130500,10 @@ $packages["net/http"] = (function() {
|
|
|
130473
130500
|
http2OpenStreamOptions.init("", [{prop: "PusherID", name: "PusherID", embedded: false, exported: true, typ: $Uint32, tag: ""}]);
|
|
130474
130501
|
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: ""}]);
|
|
130475
130502
|
http2writeQueue.init("net/http", [{prop: "s", name: "s", embedded: false, exported: false, typ: sliceType$24, tag: ""}]);
|
|
130476
|
-
http2writeQueuePool.init(ptrType$
|
|
130503
|
+
http2writeQueuePool.init(ptrType$81);
|
|
130477
130504
|
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: ""}]);
|
|
130478
|
-
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$
|
|
130479
|
-
http2sortPriorityNodeSiblings.init(ptrType$
|
|
130505
|
+
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: ""}]);
|
|
130506
|
+
http2sortPriorityNodeSiblings.init(ptrType$83);
|
|
130480
130507
|
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: ""}]);
|
|
130481
130508
|
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: ""}]);
|
|
130482
130509
|
Header.init($String, sliceType$2);
|
|
@@ -130494,13 +130521,13 @@ $packages["net/http"] = (function() {
|
|
|
130494
130521
|
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: ""}]);
|
|
130495
130522
|
Handler.init([{prop: "ServeHTTP", name: "ServeHTTP", pkg: "", typ: $funcType([ResponseWriter, ptrType$6], [], false)}]);
|
|
130496
130523
|
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)}]);
|
|
130497
|
-
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$
|
|
130498
|
-
chunkWriter.init("net/http", [{prop: "res", name: "res", embedded: false, exported: false, typ: ptrType$
|
|
130499
|
-
response.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
130524
|
+
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: ""}]);
|
|
130525
|
+
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: ""}]);
|
|
130526
|
+
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: ""}]);
|
|
130500
130527
|
writerOnly.init("", [{prop: "Writer", name: "Writer", embedded: true, exported: true, typ: io.Writer, tag: ""}]);
|
|
130501
130528
|
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: ""}]);
|
|
130502
|
-
connReader.init("net/http", [{prop: "conn", name: "conn", embedded: false, exported: false, typ: ptrType$
|
|
130503
|
-
expectContinueReader.init("net/http", [{prop: "resp", name: "resp", embedded: false, exported: false, typ: ptrType$
|
|
130529
|
+
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: ""}]);
|
|
130530
|
+
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: ""}]);
|
|
130504
130531
|
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: ""}]);
|
|
130505
130532
|
closeWriter.init([{prop: "CloseWrite", name: "CloseWrite", pkg: "", typ: $funcType([], [$error], false)}]);
|
|
130506
130533
|
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: ""}]);
|
|
@@ -130512,9 +130539,9 @@ $packages["net/http"] = (function() {
|
|
|
130512
130539
|
serverHandler.init("net/http", [{prop: "srv", name: "srv", embedded: false, exported: false, typ: ptrType$51, tag: ""}]);
|
|
130513
130540
|
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: ""}]);
|
|
130514
130541
|
globalOptionsHandler.init("", []);
|
|
130515
|
-
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$
|
|
130542
|
+
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: ""}]);
|
|
130516
130543
|
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: ""}]);
|
|
130517
|
-
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$
|
|
130544
|
+
checkConnErrorWriter.init("net/http", [{prop: "c", name: "c", embedded: false, exported: false, typ: ptrType$98, tag: ""}]);
|
|
130518
130545
|
sniffSig.init([{prop: "match", name: "match", pkg: "net/http", typ: $funcType([sliceType$4, $Int], [$String], false)}]);
|
|
130519
130546
|
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: ""}]);
|
|
130520
130547
|
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: ""}]);
|
|
@@ -130523,11 +130550,11 @@ $packages["net/http"] = (function() {
|
|
|
130523
130550
|
textSig.init("", []);
|
|
130524
130551
|
errorReader.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $error, tag: ""}]);
|
|
130525
130552
|
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: ""}]);
|
|
130526
|
-
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$
|
|
130553
|
+
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: ""}]);
|
|
130527
130554
|
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: ""}]);
|
|
130528
130555
|
unsupportedTEError.init("net/http", [{prop: "err", name: "err", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
130529
|
-
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$
|
|
130530
|
-
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$
|
|
130556
|
+
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: ""}]);
|
|
130557
|
+
bodyLocked.init("net/http", [{prop: "b", name: "b", embedded: false, exported: false, typ: ptrType$97, tag: ""}]);
|
|
130531
130558
|
finishAsyncByteRead.init("net/http", [{prop: "tw", name: "tw", embedded: false, exported: false, typ: ptrType$105, tag: ""}]);
|
|
130532
130559
|
bufioFlushWriter.init("net/http", [{prop: "w", name: "w", embedded: false, exported: false, typ: io.Writer, tag: ""}]);
|
|
130533
130560
|
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: ""}]);
|
|
@@ -130618,6 +130645,7 @@ $packages["net/http"] = (function() {
|
|
|
130618
130645
|
}))]);
|
|
130619
130646
|
http2errReadEmpty = errors.New("read from empty dataBuffer");
|
|
130620
130647
|
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" }]);
|
|
130648
|
+
http2errFromPeer = errors.New("received from peer");
|
|
130621
130649
|
http2errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers");
|
|
130622
130650
|
http2errPseudoAfterRegular = errors.New("pseudo header field after regular");
|
|
130623
130651
|
http2padZeros = $makeSlice(sliceType$4, 255);
|
|
@@ -130685,6 +130713,7 @@ $packages["net/http"] = (function() {
|
|
|
130685
130713
|
http2errStopReqBodyWrite = errors.New("http2: aborting request body write");
|
|
130686
130714
|
http2errStopReqBodyWriteAndCancel = errors.New("http2: canceling request");
|
|
130687
130715
|
http2errReqBodyTooLong = errors.New("http2: request body larger than specified content length");
|
|
130716
|
+
http2errNilRequestURL = errors.New("http2: Request.URI is nil");
|
|
130688
130717
|
http2errClosedResponseBody = errors.New("http2: response body closed");
|
|
130689
130718
|
http2errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit");
|
|
130690
130719
|
http2errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit");
|
|
@@ -136134,24 +136163,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136134
136163
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136135
136164
|
/* */ $s = 11; continue;
|
|
136136
136165
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136137
|
-
s$
|
|
136138
|
-
h = ($pointerOfStructConversion(((s$
|
|
136166
|
+
s$1[0] = _ref.$val;
|
|
136167
|
+
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));
|
|
136139
136168
|
$s = -1; return ((h)).$get();
|
|
136140
136169
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136141
|
-
s$
|
|
136142
|
-
h$1 = ($pointerOfStructConversion(((s$
|
|
136170
|
+
s$5[0] = _ref.$val;
|
|
136171
|
+
h$1 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136143
136172
|
h$1.Len = $imul(h$1.Len, (2));
|
|
136144
136173
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136145
136174
|
$s = -1; return ((h$1)).$get();
|
|
136146
136175
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136147
|
-
s$
|
|
136148
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136176
|
+
s$6[0] = _ref.$val;
|
|
136177
|
+
h$2 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136149
136178
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136150
136179
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136151
136180
|
$s = -1; return ((h$2)).$get();
|
|
136152
136181
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136153
|
-
s$
|
|
136154
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136182
|
+
s$2[0] = _ref.$val;
|
|
136183
|
+
h$3 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
|
|
136155
136184
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136156
136185
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136157
136186
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136159,32 +136188,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136159
136188
|
s$10 = _ref.$val;
|
|
136160
136189
|
$s = -1; return s$10;
|
|
136161
136190
|
/* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
|
|
136162
|
-
s$
|
|
136163
|
-
h$4 = ($pointerOfStructConversion(((s$
|
|
136191
|
+
s$7[0] = _ref.$val;
|
|
136192
|
+
h$4 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
|
|
136164
136193
|
h$4.Len = $imul(h$4.Len, (2));
|
|
136165
136194
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136166
136195
|
$s = -1; return ((h$4)).$get();
|
|
136167
136196
|
/* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
|
|
136168
|
-
s$
|
|
136169
|
-
h$5 = ($pointerOfStructConversion(((s$
|
|
136197
|
+
s$3[0] = _ref.$val;
|
|
136198
|
+
h$5 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
|
|
136170
136199
|
h$5.Len = $imul(h$5.Len, (4));
|
|
136171
136200
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136172
136201
|
$s = -1; return ((h$5)).$get();
|
|
136173
136202
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136174
|
-
s$
|
|
136175
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136203
|
+
s$4[0] = _ref.$val;
|
|
136204
|
+
h$6 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136176
136205
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136177
136206
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136178
136207
|
$s = -1; return ((h$6)).$get();
|
|
136179
136208
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136180
|
-
s$
|
|
136181
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136209
|
+
s$8[0] = _ref.$val;
|
|
136210
|
+
h$7 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136182
136211
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136183
136212
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136184
136213
|
$s = -1; return ((h$7)).$get();
|
|
136185
136214
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136186
|
-
s$
|
|
136187
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136215
|
+
s$9[0] = _ref.$val;
|
|
136216
|
+
h$8 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136188
136217
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136189
136218
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136190
136219
|
$s = -1; return ((h$8)).$get();
|