Condividi tramite


Metodo http_headers::add

Aggiunge un campo intestazione utilizzando l'operatore '<<'.

template<
   typename _t1
>
void add(
   const key_type& name,
   const _t1& value
);

void add(
   const key_type& name,
   utility::string_t value
);

void add(
   const key_type& name,
   const utility::char_t* const value
);

Parametri

  • _t1

  • name
    Il nome del campo di intestazione.

  • value
    Il valore del campo dell'intestazione.

Requisiti

Intestazione: http_msg.h

Spazio dei nomi: web::http

Vedere anche

Riferimenti

Classe http_headers