summaryrefslogtreecommitdiff
path: root/tests/network/urlparse.c
Commit message (Collapse)AuthorAgeFilesLines
* net: rename gitno_connection_data to git_net_urlEdward Thomson2019-06-101-169/+93
| | | | | | | | | | "Connection data" is an imprecise and largely incorrect name; these structures are actually parsed URLs. Provide a parser that takes a URL string and produces a URL structure (if it is valid). Separate the HTTP redirect handling logic from URL parsing, keeping a `gitno_connection_data_handle_redirect` whose only job is redirect handling logic and does not parse URLs itself.
* netops: make the path optional in URLsCarlos Martín Nieto2016-04-191-0/+9
| | | | | | When we're dealing with proxy addresses, we only want a hostname and port, and the user would not provide a path, so make it optional so we can use this same function to parse git as well as proxy URLs.
* netops: error out on url without a pathcmn/http-url-pathCarlos Martín Nieto2014-07-031-0/+18
| | | | | | In order to connect to a remote server, we need to provide a path to the repository we're interested in. Consider the lack of path in the url an error.
* Rename tests-clar to testsBen Straub2013-11-141-0/+193