162 {
163 protocolName = null;
164 protocolVersion = null;
166 int tokenLength = HttpRuleParser.GetTokenLength(
input, startIndex2);
167 if (tokenLength == 0)
168 {
169 return 0;
170 }
172 int whitespaceLength = HttpRuleParser.GetWhitespaceLength(
input, startIndex2);
173 startIndex2 += whitespaceLength;
174 if (startIndex2 ==
input.Length)
175 {
176 return 0;
177 }
178 if (
input[startIndex2] ==
'/')
179 {
181 startIndex2++;
182 startIndex2 += HttpRuleParser.GetWhitespaceLength(
input, startIndex2);
183 tokenLength = HttpRuleParser.GetTokenLength(
input, startIndex2);
184 if (tokenLength == 0)
185 {
186 return 0;
187 }
188 protocolVersion =
input.Substring(startIndex2, tokenLength);
189 startIndex2 += tokenLength;
190 whitespaceLength = HttpRuleParser.GetWhitespaceLength(
input, startIndex2);
191 startIndex2 += whitespaceLength;
192 }
193 else
194 {
196 }
197 if (whitespaceLength == 0)
198 {
199 return 0;
200 }
201 return startIndex2;
202 }