Removes a header field with the specified name. Does nothing if such a field could not be found. @param name the name of the header field to be removed
(String name)
| 413 | * @param name the name of the header field to be removed |
| 414 | */ |
| 415 | public void removeHeader(String name) { |
| 416 | for (int i = 0; i < count; i++) { |
| 417 | if (headers[i].getName().equalsIgnoreCase(name)) { |
| 418 | removeHeader(i--); |
| 419 | } |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | /** |
| 424 | * Reset, move to the end and then reduce count by 1. |
no test coverage detected