MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpSetField

Function httpSetField

cups/http.c:2623–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2621 */
2622
2623void
2624httpSetField(http_t *http, /* I - HTTP connection */
2625 http_field_t field, /* I - Field index */
2626 const char *value) /* I - Value */
2627{
2628 DEBUG_printf(("httpSetField(http=%p, field=%d(%s), value=\"%s\")", (void *)http, field, http_fields[field], value));
2629
2630 if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX || !value)
2631 return;
2632
2633 http_add_field(http, field, value, 0);
2634}
2635
2636
2637/*

Callers 15

do_testFunction · 0.85
finish_document_uriFunction · 0.85
respond_httpFunction · 0.85
valid_doc_attributesFunction · 0.85
cupsdReadClientFunction · 0.85
cupsdSendErrorFunction · 0.85
cupsdSendHeaderFunction · 0.85
cupsdWriteClientFunction · 0.85
check_start_tlsFunction · 0.85
write_fileFunction · 0.85
mainFunction · 0.85
cupsGetFdFunction · 0.85

Calls 1

http_add_fieldFunction · 0.85

Tested by 1

mainFunction · 0.68