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

Add http_parser_parse_url(). #58

Merged
merged 1 commit into from
Jan 7, 2012
Merged

Add http_parser_parse_url(). #58

merged 1 commit into from
Jan 7, 2012

Conversation

pgriess
Copy link
Contributor

@pgriess pgriess commented Jul 27, 2011

  • Add an http_parser_parse_url() method to parse a URL into its
    constituent components. This uses the same underlying parser
    as http_parser_parse() and doesn't do any data copies.
  • Re-add the URL components in various test.c structures; validate
    them when parsing.

@yhager
Copy link

yhager commented Jul 27, 2011

Haven't reviewed the code, but this is exactly what I asked in #56, so consider this an upvote.

@bnoordhuis bnoordhuis mentioned this pull request Jan 4, 2012
@pgriess
Copy link
Contributor Author

pgriess commented Jan 6, 2012

I updated the API slightly to allow using this with CONNECT : "url"s. If nobody has any objections, I'll merge this this weekend.

@clifffrey
Copy link
Contributor

This looks good to me

break;
}

/* We should never fall out of the swtich above unless there's an error */

This comment was marked as off-topic.

@bnoordhuis
Copy link
Member

LGTM.

- Add an http_parser_parse_url() method to parse a URL into its
  constituent components. This uses the same underlying parser
  as http_parser_parse() and doesn't do any data copies.
- Re-add the URL components in various test.c structures; validate
  them when parsing.
pgriess added a commit that referenced this pull request Jan 7, 2012
Add http_parser_parse_url().
@pgriess pgriess merged commit c48351f into nodejs:master Jan 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants