AddToBody() public method

Add bytes to the body
If body is not writable
public AddToBody ( byte bytes, int offset, int length ) : int
bytes byte buffer to read bytes from
offset int where to start read
length int number of bytes to read
return int
Example #1
0
 /// <summary>
 /// Process incoming body bytes.
 /// </summary>
 /// <param name="sender"><see cref="IHttpRequestParser"/></param>
 /// <param name="e">Bytes</param>
 protected virtual void OnBodyBytesReceived(object sender, BodyEventArgs e)
 {
     m_currentRequest.AddToBody(e.Buffer, e.Offset, e.Count);
 }