mirror of https://gitee.com/apiumc/Gateway.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
585 B
C#
28 lines
585 B
C#
using System;
|
|
|
|
namespace UMC.Host
|
|
{
|
|
|
|
class HttpBridgeRequest : HttpMimeRequest
|
|
{
|
|
|
|
HttpBridgeMime httpBridge;
|
|
public HttpBridgeRequest(HttpBridgeMime mime) : base(mime)
|
|
{
|
|
this.httpBridge = mime;
|
|
}
|
|
public override void Receive(byte[] buffer, int offset, int size)
|
|
{
|
|
if (this.IsWebSocket)
|
|
{
|
|
this.httpBridge.WebSocket(buffer, offset, size);
|
|
}
|
|
else
|
|
{
|
|
base.Receive(buffer, offset, size);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|