websocket临时提交

This commit is contained in:
Liujian
2022-10-26 15:06:29 +08:00
parent 87be0a46fe
commit 01e9f84a2c
5 changed files with 18 additions and 18 deletions

View File

@@ -3,11 +3,12 @@ package http_context
import (
"context"
"fmt"
"github.com/eolinker/eosc/utils/config"
"net"
"strings"
"time"
"github.com/eolinker/eosc/utils/config"
fasthttp_client "github.com/eolinker/apinto/node/fasthttp-client"
eoscContext "github.com/eolinker/eosc/eocontext"
@@ -101,7 +102,6 @@ func (ctx *Context) SetFinish(handler eoscContext.FinishHandler) {
}
func (ctx *Context) Scheme() string {
return string(ctx.fastHttpRequestCtx.Request.URI().Scheme())
}
@@ -169,6 +169,7 @@ func (ctx *Context) Request() http_service.IRequestReader {
//NewContext 创建Context
func NewContext(ctx *fasthttp.RequestCtx, port int) *Context {
id := uuid.NewV4()
requestID := id.String()
newCtx := &Context{