Sha256: 70bc89202622521f59b6f1b5b157152f650cbde4897f0bab042786067faf29f7

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

#ifndef RUBY_EV_HTTP_H
#define RUBY_EV_HTTP_H

#include <string>
#include "ev_dispatch.h"
#include "ev_http.h"

struct rResponse {
  rResponse();
  ~rResponse();

  volatile bool has_headers;

  // return values
  // 1: read again
  // 0: finished
  // -1: error
  int read_body_partial();

  bool init();

  EVD::HttpResponse *m_response;
  int m_pipe[2];  // might use this if the IO object does not have a file descriptor
  bool m_use_pipe;

  std::string m_buffer;
  
};

#endif

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
evdispatch-0.3.0 ext/revdispatch/rhttp.h
evdispatch-0.3.1 ext/revdispatch/rhttp.h
evdispatch-0.4.0 ext/revdispatch/rhttp.h
evdispatch-0.4.1 ext/revdispatch/rhttp.h
evdispatch-0.4.2 ext/revdispatch/rhttp.h