Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpMultipart"/> class.
 /// </summary>
 /// <param name="requestStream">The request stream to parse.</param>
 /// <param name="boundary">The boundary marker to look for.</param>
 public HttpMultipart(Stream requestStream, string boundary)
 {
     this.requestStream          = requestStream;
     this.boundaryAsBytes        = GetBoundaryAsBytes(boundary, false);
     this.closingBoundaryAsBytes = GetBoundaryAsBytes(boundary, true);
     this.readBuffer             = new HttpMultipartBuffer(this.boundaryAsBytes, this.closingBoundaryAsBytes);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpMultipart"/> class.
 /// </summary>
 /// <param name="requestStream">The request stream to parse.</param>
 /// <param name="boundary">The boundary marker to look for.</param>
 public HttpMultipart(Stream requestStream, string boundary)
 {
     this.requestStream = requestStream;
     this.boundaryAsBytes = GetBoundaryAsBytes(boundary, false);
     this.closingBoundaryAsBytes = GetBoundaryAsBytes(boundary, true);
     this.readBuffer = new HttpMultipartBuffer(this.boundaryAsBytes, this.closingBoundaryAsBytes);
 }
 public HttpMultipartBufferFixture()
 {
     this.boundary = GetBoundaryAsBytes();
     this.buffer = new HttpMultipartBuffer(this.boundary, new byte[1]);
 }