Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Multiple calls of data callbacks #1

Description

@temoto

http://github.com/ry/http-parser/blob/37a0ff8928fb0d83cec0d0d8909c5a4abcd221af/http_parser.h#L38-40

/*
* http_data_cb does not return data chunks. It will be call arbitrarally
* many times for each string. E.G. you might get 10 callbacks for "on_path"
* each providing just a few characters more data.
*/

Maybe i did not understand ragel docs about %actions.
Is this still true? Could you please write an example of copying headers to separate array of struct { char *name; char *value; }?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions