{"id":13420753,"url":"https://github.com/fastly/libvmod-urlcode","last_synced_at":"2025-03-15T07:31:29.413Z","repository":{"id":2480423,"uuid":"3453684","full_name":"fastly/libvmod-urlcode","owner":"fastly","description":"urlencode/urldecode functions vmod","archived":true,"fork":false,"pushed_at":"2023-03-06T09:39:33.000Z","size":151,"stargazers_count":23,"open_issues_count":9,"forks_count":15,"subscribers_count":100,"default_branch":"master","last_synced_at":"2024-07-31T22:56:35.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastly.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-02-15T21:19:01.000Z","updated_at":"2024-05-23T05:08:57.000Z","dependencies_parsed_at":"2023-07-06T09:33:47.123Z","dependency_job_id":null,"html_url":"https://github.com/fastly/libvmod-urlcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastly%2Flibvmod-urlcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastly%2Flibvmod-urlcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastly%2Flibvmod-urlcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastly%2Flibvmod-urlcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastly","download_url":"https://codeload.github.com/fastly/libvmod-urlcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701113,"owners_count":20333614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:40.502Z","updated_at":"2025-03-15T07:31:29.048Z","avatar_url":"https://github.com/fastly.png","language":"Shell","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"readme":"============\nvmod_urlcode\n============\n\n----------------------\nVarnish URLcode Module\n----------------------\n\n:Author: Rogier \"DocWilco\" Mulhuijzen\n:Date: 2012-02-15\n:Version: 1.0\n:Manual section: 3\n\nSYNOPSIS\n========\n\n::\n\n\timport urlcode;\n\turlcode.encode(\u003cstring\u003e);\n\turlcode.decode(\u003cstring\u003e);\n\nDESCRIPTION\n===========\n\nVarnish Module (vmod) for encoding or decoding to/from \"percent encoding\" as \nper RFC3986.\n\nFor backward compatibility, a + will be decoded to a space.\n\nFUNCTIONS\n=========\n\nExample VCL::\n\n\tbackend foo { ... };\n\n\timport urlcode;\n\n\tsub vcl_recv {\n\t\tset req.url = \"/example?url=\" + urlcode.encode(\"http://\" +\n\t\t\treq.http.host + req.url);\n\t}\n\nencode\n------\n\nPrototype\n        ::\n\n\t\turlcode.encode(STRING_LIST input)\n\nReturn value\n\tSTRING\nDescription\n\tReturns a percent encoded version of input. Or NULL if sess_workspace\n\tdoes not have enough space for the operation.\nExample\n\t::\n\n\t\tset resp.http.foo = urlcode.encode(\"hello world!\");\n\ndecode\n------\n\nPrototype\n        ::\n\n\t\turlcode.decode(STRING_LIST input)\n\nReturn value\n\tSTRING\nDescription\n\tReturns a percent decoded version of input. Or NULL if either the \n\tencoding is invalid or sess_workspace does not have enough space for\n\tthe operation.\nExample\n\t::\n\n\t\tset resp.http.foo = urlcode.decode(\"hello%20world%21\");\n\n\nINSTALLATION\n============\n\nThe source tree is based on autotools to configure the building, and\ndoes also have the necessary bits in place to do functional unit tests\nusing the varnishtest tool.\n\nUsage::\n\n ./configure VARNISHSRC=DIR [VMODDIR=DIR]\n\n`VARNISHSRC` is the directory of the Varnish source tree for which to\ncompile your vmod. Both the `VARNISHSRC` and `VARNISHSRC/include`\nwill be added to the include search paths for your module.\n\nOptionally you can also set the vmod install directory by adding\n`VMODDIR=DIR` (defaults to the pkg-config discovered directory from your\nVarnish installation).\n\nMake targets:\n\n* make - builds the vmod\n* make install - installs your vmod in `VMODDIR`\n* make check - runs the unit tests in ``src/tests/*.vtc``\n\n\nHISTORY\n=======\n\nVersion 1.0: Initial version.\n\nCOPYRIGHT\n=========\n\nThis document is licensed under the same license as the\nlibvmod-urlcode project. See LICENSE for details.\n\n* Copyright (c) 2012 Fastly Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastly%2Flibvmod-urlcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastly%2Flibvmod-urlcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastly%2Flibvmod-urlcode/lists"}