<commit_before>#ifndef _HTTPCLIENTINTERFACE_H_
#define _HTTPCLIENTINTERFACE_H_

#include <cstddef>

class HTTPClientInterface {
 public:
  virtual ~HTTPClientInterface() { }
  virtual bool handleChunk(size_t len, const char * chunk) = 0;
  virtual bool reconnect() const { return true; }
  virtual bool onIdle(bool is_delayed) { return true; }
};

#endif<commit_msg>add handleHeader() method to HTTPClientInterface<commit_after>#ifndef _HTTPCLIENTINTERFACE_H_
#define _HTTPCLIENTINTERFACE_H_

#include <cstddef>

class HTTPClientInterface {
 public:
  virtual ~HTTPClientInterface() { }
  virtual void handleHeader(const std::string & key, const std::string & value) { }
  virtual bool handleChunk(size_t len, const char * chunk) = 0;
  virtual bool reconnect() const { return true; }
  virtual bool onIdle(bool is_delayed) { return true; }
};

#endif
{'fraction_non_alphanumeric': 0.09518213866039953, 'fraction_numerical': 0.0023501762632197414, 'mean_word_length': 5.816, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '335251', 'n_tokens_mistral': 266, 'n_tokens_neox': 267, 'n_words': 75}