_HeaderContainer.
append
append() ->
None
Add header to the container.
First, try to convert header dict to _Header object, and return early if it's not possible. Then, check if the header is already in the container. If it is, get a pointer to the existing header and add it to the container. If it is not, add it to the container.
Parameters
name | type | description |
---|---|---|
header_dict: dict | <class 'dict'> | None |