Copy a http_if_match_t header structure.
The function http_if_match_copy() copies a header structure hdr. If the header structure hdr contains a reference (
hdr->h_next) to a list of headers, all the headers in that list are copied, too. The function uses given memory home to allocate all the memory areas used to copy the header structure hdr.
|home ||memory home used to allocate new structure |
|hdr ||pointer to the header structure to be duplicated|
When copying, only the header structure and parameter lists attached to it are duplicated. The new header structure retains all the references to the strings within the old header
, including the encoding of the old header, if present.
- The function http_if_match_copy() returns a pointer to newly copied header structure, or NULL upon an error.