Sha256: 45a810bbd73d2ffe6437e8e661183735259956732c9cbbced0a14124a2b8201c
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
#pragma once #include "nyara.h" #include <multipart_parser.h> #include <errno.h> #include <unistd.h> enum ParseState { PS_INIT, PS_HEADERS_COMPLETE, PS_MESSAGE_COMPLETE, PS_ERROR }; typedef struct { http_parser hparser; multipart_parser* mparser; enum http_method method; int fd; enum ParseState parse_state; int status; // response status VALUE self; VALUE rid; // fixnum // request VALUE header; VALUE accept; // mime array sorted with q VALUE format; // string ext without dot VALUE fiber; VALUE scope; // mapped prefix VALUE path_with_query; VALUE path; VALUE query; VALUE last_field; VALUE last_value; VALUE last_part; // multipart last header or body VALUE body; // string when single part, array when multipart // env VALUE cookie; VALUE session; VALUE flash; // response VALUE response_content_type; VALUE response_header; VALUE response_header_extra_lines; VALUE watched_fds; VALUE instance; bool sleeping; } Request; Request* nyara_request_new(int fd);
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.2 | ext/request.h |
nyara-0.1.pre.1 | ext/request.h |
nyara-0.1.pre.0 | ext/request.h |
nyara-0.0.1.pre.9 | ext/request.h |