mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
more changes on http server low level
This commit is contained in:
@@ -26,11 +26,13 @@ namespace OSHttpServer
|
||||
/// </example>
|
||||
public interface IHttpResponse
|
||||
{
|
||||
event EventHandler<BandWitdhEventArgs> BandWitdhEvent;
|
||||
/// <summary>
|
||||
/// The body stream is used to cache the body contents
|
||||
/// before sending everything to the client. It's the simplest
|
||||
/// way to serve documents.
|
||||
/// </summary>
|
||||
///
|
||||
Stream Body { get; }
|
||||
byte[] RawBuffer { get; set; }
|
||||
int RawBufferStart { get; set; }
|
||||
@@ -142,4 +144,19 @@ namespace OSHttpServer
|
||||
/// </summary>
|
||||
KeepAlive
|
||||
}
|
||||
|
||||
public class BandWitdhEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets received request.
|
||||
/// </summary>
|
||||
public int Result;
|
||||
public int Request;
|
||||
|
||||
public BandWitdhEventArgs(int request)
|
||||
{
|
||||
Request = request;
|
||||
Result = request;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user