http_parser_url (C/http_parser.c)

linguist · samples/C/http_parser.c · c · MIT
infra

Standalone C library for parsing HTTP URLs in web servers and clients

// Source: https://github.com/github-linguist/linguist | License: MIT | Copyright 2017 GitHub, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
 *
 * Additional changes are licensed under the same terms as NGINX and
 * copyright Joyent, Inc. and other Node contributors. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key