{"id":15437133,"url":"https://github.com/awwright/gulp-http-server","last_synced_at":"2026-05-13T05:44:14.020Z","repository":{"id":13537736,"uuid":"16229376","full_name":"awwright/gulp-http-server","owner":"awwright","description":"An HTTP server with Gulp!","archived":false,"fork":false,"pushed_at":"2014-01-25T21:28:48.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T10:29:04.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-25T10:59:14.000Z","updated_at":"2020-04-29T13:04:01.000Z","dependencies_parsed_at":"2022-09-04T08:31:27.774Z","dependency_job_id":null,"html_url":"https://github.com/awwright/gulp-http-server","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/awwright%2Fgulp-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awwright%2Fgulp-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awwright%2Fgulp-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awwright%2Fgulp-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awwright","download_url":"https://codeload.github.com/awwright/gulp-http-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583196,"owners_count":20476233,"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-10-01T18:55:15.322Z","updated_at":"2026-05-13T05:44:13.939Z","avatar_url":"https://github.com/awwright.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-http-server\n\nA library for serving HTTP requests through a Gulp pipeline\n\nFormat Markdown files on your filesystem to HTML!\n\nFormat JSON into HTML!\n\nFormat HTML into PDFs!\n\nDO ANYTHING!\n\n## Example\n\nSee httpd.js for an example server:\n\n\t$ node httpd.js\n\n## Usage\n\n\tvar gulphttpd = require('gulp-http-server');\n\n### gulphttpd.src(httpd, webroot, namespace)\n\nServe files out of `webroot` whenever `namespace` is asked for. Typically `namespace` should be `/`, but may also be an absolute URI like `http://example.com/`.\n\n`webroot` must have a trailing `/`.\n\n\n### gulphttpd.log([outstream])\n\nLogs the request to outstream in the Common Log Format when the response is written. Defaults to stdout if not provided.\n\n\n### gulphttpd.request(fn)\n\nCalls `fn(file, req, res, next)` on every request so you can conduct HTTP-specific logic on an HTTP request. For instance, setting CORS headers or setting Content-Type based on the filename.\n\nCall `next()` to pass the request along in the pipeline, or pass an error argument to trigger an error.\n\n\n\n### gulphttpd.setHeader(name, value)\n\nCalls response.setHeader on every HTTP request going through. Useful for setting the Content-Type, Server, or similar headers.\n\n\n### gulphttpd.dest()\n\nWrites the formatted file to the HTTP response, which was stored in the `stats.http` object during the `gulphttpd.src` call (so no arguments are needed).\n\nThis passes through the file object unmodified, so you may read from `stats.http.req` and `stats.http.res` to do logging or other operations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawwright%2Fgulp-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawwright%2Fgulp-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawwright%2Fgulp-http-server/lists"}