test_request_line_split_in_two_packets.js File Reference

Go to the source code of this file.

Functions

function run_test ()
 
function veryLongRequestLine (request, response)
 
 for (var i=0;i< 10;i++) gibberish+
 
function checkVeryLongRequestLine (data)
 
tests push (test)
 
function lotsOfLeadingBlankLines (request, response)
 
function checkLotsOfLeadingBlankLines (data)
 

Variables

const PORT = 4444
 
var srv
 
var test = new RawTest("localhost", PORT, data, checkVeryLongRequestLine)
 
var data = []
 
var str
 
var tests = []
 
var path = "/very-long-request-line?"
 
var gibberish = "dfsasdbfjkbnsldkjnewiunfasjkn"
 
var blankLines = "\r\n"
 

Function Documentation

function checkLotsOfLeadingBlankLines (   data)

Definition at line 128 of file test_request_line_split_in_two_packets.js.

Here is the call graph for this function:

function checkVeryLongRequestLine (   data)

Definition at line 86 of file test_request_line_split_in_two_packets.js.

Here is the call graph for this function:

for ( )

Definition at line 1381 of file nsSessionStore.js.

function lotsOfLeadingBlankLines (   request,
  response 
)

Definition at line 113 of file test_request_line_split_in_two_packets.js.

Here is the call graph for this function:

Here is the caller graph for this function:

tests push ( test  )
function run_test ( )

Definition at line 50 of file test_request_line_split_in_two_packets.js.

Here is the call graph for this function:

function veryLongRequestLine (   request,
  response 
)

Definition at line 71 of file test_request_line_split_in_two_packets.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

var blankLines = "\r\n"

Definition at line 118 of file test_request_line_split_in_two_packets.js.

data = []

Definition at line 67 of file test_request_line_split_in_two_packets.js.

var gibberish = "dfsasdbfjkbnsldkjnewiunfasjkn"

Definition at line 77 of file test_request_line_split_in_two_packets.js.

var path = "/very-long-request-line?"

Definition at line 76 of file test_request_line_split_in_two_packets.js.

const PORT = 4444

Tests that even when an incoming request's data for the Request-Line doesn't all fit in a single onInputStreamReady notification, the request is handled properly.

Definition at line 46 of file test_request_line_split_in_two_packets.js.

var srv

Definition at line 48 of file test_request_line_split_in_two_packets.js.

str
Initial value:
= "GET /very-long-request-line?" + gibberish + " HTTP/1.1\r\n" +
"Host: localhost:4444\r\n" +
"\r\n"

Definition at line 67 of file test_request_line_split_in_two_packets.js.

test = new RawTest("localhost", PORT, data, checkVeryLongRequestLine)

Definition at line 67 of file test_request_line_split_in_two_packets.js.

var tests = []

Definition at line 68 of file test_request_line_split_in_two_packets.js.