Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_http_parser.cc File Reference
#include "node.h"
#include "node_buffer.h"
#include "async-wrap.h"
#include "async-wrap-inl.h"
#include "env.h"
#include "env-inl.h"
#include "http_parser.h"
#include "stream_base.h"
#include "stream_base-inl.h"
#include "util.h"
#include "util-inl.h"
#include "v8.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for node_http_parser.cc:

Go to the source code of this file.

Namespaces

 node
 

Macros

#define HTTP_CB(name)
 
#define HTTP_DATA_CB(name)
 
#define V(num, name, string)   methods->Set(num, FIXED_ONE_BYTE_STRING(env->isolate(), #string));
 

Macro Definition Documentation

◆ HTTP_CB

#define HTTP_CB (   name)
Value:
static int name(http_parser* p_) { \
Parser* self = ContainerOf(&Parser::parser_, p_); \
return self->name##_(); \
} \
int name##_()
http_parser parser_

Definition at line 79 of file node_http_parser.cc.

◆ HTTP_DATA_CB

#define HTTP_DATA_CB (   name)
Value:
static int name(http_parser* p_, const char* at, size_t length) { \
Parser* self = ContainerOf(&Parser::parser_, p_); \
return self->name##_(at, length); \
} \
int name##_(const char* at, size_t length)
http_parser parser_

Definition at line 87 of file node_http_parser.cc.

◆ V

#define V (   num,
  name,
  string 
)    methods->Set(num, FIXED_ONE_BYTE_STRING(env->isolate(), #string));

Variable Documentation

◆ current_buffer_

Local<Object> current_buffer_
protected

Definition at line 740 of file node_http_parser.cc.

◆ current_buffer_data_

char* current_buffer_data_
protected

Definition at line 742 of file node_http_parser.cc.

◆ current_buffer_len_

size_t current_buffer_len_
protected

Definition at line 741 of file node_http_parser.cc.

◆ fields_

StringPtr fields_[32]
protected

Definition at line 732 of file node_http_parser.cc.

◆ got_exception_

bool got_exception_
protected

Definition at line 739 of file node_http_parser.cc.

◆ have_flushed_

bool have_flushed_
protected

Definition at line 738 of file node_http_parser.cc.

◆ nullptr

nullptr

Definition at line 753 of file node_http_parser.cc.

◆ num_fields_

size_t num_fields_
protected

Definition at line 736 of file node_http_parser.cc.

◆ num_values_

size_t num_values_
protected

Definition at line 737 of file node_http_parser.cc.

◆ on_heap_

bool on_heap_

Definition at line 162 of file node_http_parser.cc.

◆ parser_

http_parser parser_
protected

Definition at line 731 of file node_http_parser.cc.

◆ prev_alloc_cb_

StreamResource::Callback<StreamResource::AllocCb> prev_alloc_cb_
protected

Definition at line 743 of file node_http_parser.cc.

◆ prev_read_cb_

StreamResource::Callback<StreamResource::ReadCb> prev_read_cb_
protected

Definition at line 744 of file node_http_parser.cc.

◆ refcount_

int refcount_ = 1
protected

Definition at line 745 of file node_http_parser.cc.

◆ size_

size_t size_

Definition at line 163 of file node_http_parser.cc.

Referenced by RandomBytesRequest::release(), and RandomBytesRequest::size().

◆ status_message_

StringPtr status_message_
protected

Definition at line 735 of file node_http_parser.cc.

◆ str_

const char* str_

Definition at line 161 of file node_http_parser.cc.

Referenced by TraceStringWithCopy::operator const char *().

◆ url_

StringPtr url_
protected

Definition at line 734 of file node_http_parser.cc.

◆ values_

StringPtr values_[32]
protected

Definition at line 733 of file node_http_parser.cc.