mirror of
https://github.com/eolinker/apinto
synced 2025-10-07 09:41:01 +08:00
websocket临时提交
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user