http2: adjust error types, increase test coverage
A few small things:
- changed error types emitted from
request
andvalidatePriorityOptions
(when validating options provided) to beTypeError
rather thanRangeError
- added tests to confirm that errors for all options are thrown as expected (weight, parent, exclusive, silent, endStream and getTrailers)
- added test for method CONNECT (in client
request
) throwing errors on missing:authority
or superfluous:scheme
and:path
Please let me know if there's anything I can adjust. Thanks!
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
http2, test