Ejemplo n.º 1
0
 public conn(ref ptr <Server> server = default, context.CancelFunc cancelCtx = default, net.Conn rwc = default, @string remoteAddr = default, ref ptr <tls.ConnectionState> tlsState = default, error werr = default, ref ptr <connReader> r = default, ref ptr <bufio.Reader> bufr = default, ref ptr <bufio.Writer> bufw = default, @string lastMethod = default, atomic.Value curReq = default, sync.Mutex mu = default, bool hijackedv = default)
 {
     this.server     = server;
     this.cancelCtx  = cancelCtx;
     this.rwc        = rwc;
     this.remoteAddr = remoteAddr;
     this.tlsState   = tlsState;
     this.werr       = werr;
     this.r          = r;
     this.bufr       = bufr;
     this.bufw       = bufw;
     this.lastMethod = lastMethod;
     this.curReq     = curReq;
     this.mu         = mu;
     this.hijackedv  = hijackedv;
 }
Ejemplo n.º 2
0
 public response(ref ptr <conn> conn = default, ref ptr <Request> req = default, io.ReadCloser reqBody = default, context.CancelFunc cancelCtx = default, bool wroteHeader = default, bool wroteContinue = default, bool wants10KeepAlive = default, bool wantsClose = default, atomicBool canWriteContinue = default, sync.Mutex writeContinueMu = default, ref ptr <bufio.Writer> w = default, chunkWriter cw = default, Header handlerHeader = default, bool calledHeader = default, long written = default, long contentLength = default, long status = default, bool closeAfterReply = default, bool requestBodyLimitHit = default, slice <@string> trailers = default, atomicBool handlerDone = default, array <byte> dateBuf = default, array <byte> clenBuf = default, array <byte> statusBuf = default, channel <bool> closeNotifyCh = default, int didCloseNotify = default)
 {
     this.conn             = conn;
     this.req              = req;
     this.reqBody          = reqBody;
     this.cancelCtx        = cancelCtx;
     this.wroteHeader      = wroteHeader;
     this.wroteContinue    = wroteContinue;
     this.wants10KeepAlive = wants10KeepAlive;
     this.wantsClose       = wantsClose;
     this.canWriteContinue = canWriteContinue;
     this.writeContinueMu  = writeContinueMu;
     this.w                   = w;
     this.cw                  = cw;
     this.handlerHeader       = handlerHeader;
     this.calledHeader        = calledHeader;
     this.written             = written;
     this.contentLength       = contentLength;
     this.status              = status;
     this.closeAfterReply     = closeAfterReply;
     this.requestBodyLimitHit = requestBodyLimitHit;
     this.trailers            = trailers;
     this.handlerDone         = handlerDone;
     this.dateBuf             = dateBuf;
     this.clenBuf             = clenBuf;
     this.statusBuf           = statusBuf;
     this.closeNotifyCh       = closeNotifyCh;
     this.didCloseNotify      = didCloseNotify;
 }