コード例 #1
0
ファイル: stream.c プロジェクト: bowlofstew/h2o
void h2o_http2_stream_proceed(h2o_http2_conn_t *conn, h2o_http2_stream_t *stream)
{
    if (stream->state == H2O_HTTP2_STREAM_STATE_END_STREAM) {
        h2o_http2_stream_close(conn, stream);
    } else {
        h2o_proceed_response(&stream->req);
    }
}
コード例 #2
0
ファイル: http1.c プロジェクト: ifzz/h2o
static void on_send_next_push(h2o_socket_t *sock, int status)
{
    struct st_h2o_http1_conn_t *conn = sock->data;

    if (status != 0)
        close_connection(conn, 1);
    else
        h2o_proceed_response(&conn->req);
}
コード例 #3
0
ファイル: http1.c プロジェクト: dstufft/h2o
static void on_send_next_push(h2o_socket_t *sock, const char *err)
{
    struct st_h2o_http1_conn_t *conn = sock->data;

    if (err != NULL)
        close_connection(conn, 1);
    else
        h2o_proceed_response(&conn->req);
}
コード例 #4
0
ファイル: request.c プロジェクト: Debug-Orz/h2o
static void deferred_proceed_cb(h2o_timeout_entry_t *entry)
{
    h2o_req_t *req = H2O_STRUCT_FROM_MEMBER(h2o_req_t, _timeout_entry, entry);
    h2o_proceed_response(req);
}