C# Class TrotiNet.BaseProxyLogic.RequestProcessingState

Maintains the internal state for the request currently being processed
Mostrar archivo Open project: Gizeta/Nekoxy-fiddler

Public Properties

Property Type Description
NextStep ProcessingStep
OnResponseMessagePacket HttpSocket.MessagePacketHandler
RequestMessageLength uint
bPersistConnectionBP bool
bPersistConnectionPS bool
bRequestHasMessage bool
bRequestMessageChunked bool
bUseDefaultPersistBP bool

Public Methods

Method Description
RequestProcessingState ( ProcessingStep StartStep ) : System

Processing state constructor

Method Details

RequestProcessingState() public method

Processing state constructor
public RequestProcessingState ( ProcessingStep StartStep ) : System
StartStep ProcessingStep /// First step of the request processing pipeline ///
return System

Property Details

NextStep public_oe property

Points to the next processing step; must be updated after each processing step, setting it to null will stop the processing
public ProcessingStep NextStep
return ProcessingStep

OnResponseMessagePacket public_oe property

When set to not null, will be called every time a raw fragment of a non-empty response message body is received; note that the packet handler becomes responsible for sending the response (whatever it is) to SocketBP
The message body might be compressed (or otherwise modified), as specified by the Content-Encoding header. Applications should use ProxyLogic.GetResponseMessageStream to decompress (whenever necessary) the message stream.
public HttpSocket.MessagePacketHandler OnResponseMessagePacket
return HttpSocket.MessagePacketHandler

RequestMessageLength public_oe property

Length of the request message, if any
public uint RequestMessageLength
return uint

bPersistConnectionBP public_oe property

Whether the BP connection should be kept alive after handling the current request, or closed
public bool bPersistConnectionBP
return bool

bPersistConnectionPS public_oe property

Whether the PS connection should be kept alive after handling the current request, or closed
If set to false, then bPersistConnectionBP will also be set to false, because if no Content-Length has been specified, the browser would keep on waiting (BP kept-alive, but PS closed).
public bool bPersistConnectionPS
return bool

bRequestHasMessage public_oe property

Whether the request contains a message
public bool bRequestHasMessage
return bool

bRequestMessageChunked public_oe property

Whether the request message (if any) is being transmitted in chunks
public bool bRequestMessageChunked
return bool

bUseDefaultPersistBP public_oe property

Set to true if no instruction was given in the request headers about whether the BP connection should persist
public bool bUseDefaultPersistBP
return bool