Exemplo n.º 1
0
 private async Task ReceiveTimeoutResponse(InMemoryConnection connection, TestServiceContext testContext)
 {
     await connection.Receive(
         "HTTP/1.1 408 Request Timeout",
         "Content-Length: 0",
         "Connection: close",
         $"Date: {testContext.DateHeaderValue}",
         "",
         "");
 }
Exemplo n.º 2
0
 private async Task ReceiveResponse(InMemoryConnection connection, TestServiceContext testContext)
 {
     await connection.Receive(
         "HTTP/1.1 200 OK",
         $"Date: {testContext.DateHeaderValue}",
         "Transfer-Encoding: chunked",
         "",
         "c",
         "hello, world",
         "0",
         "",
         "");
 }