{"id":18778349,"url":"https://github.com/ajsalemo/custom-response-header-examples","last_synced_at":"2026-04-07T18:31:59.129Z","repository":{"id":103500812,"uuid":"495596967","full_name":"Ajsalemo/custom-response-header-examples","owner":"Ajsalemo","description":"Multiple examples on various stacks on how to add custom response headers to an application.","archived":false,"fork":false,"pushed_at":"2022-05-25T22:58:48.000Z","size":1672,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:35:31.866Z","etag":null,"topics":["apache","azure","containers","docker","dotnet","http","java","linux","nginx","node","php","python","response-headers","webserver"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Ajsalemo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-23T22:51:03.000Z","updated_at":"2022-05-25T23:00:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b17f53d-5b03-4880-aac5-290facda4682","html_url":"https://github.com/Ajsalemo/custom-response-header-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajsalemo/custom-response-header-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcustom-response-header-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcustom-response-header-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcustom-response-header-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcustom-response-header-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajsalemo","download_url":"https://codeload.github.com/Ajsalemo/custom-response-header-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcustom-response-header-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apache","azure","containers","docker","dotnet","http","java","linux","nginx","node","php","python","response-headers","webserver"],"created_at":"2024-11-07T20:16:01.340Z","updated_at":"2026-04-07T18:31:59.112Z","avatar_url":"https://github.com/Ajsalemo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-response-header-examples\nMultiple examples on various stacks on how to add custom response headers to an application.\n\n- **dotnet**\n    - This contains an example with ASP .NET Core 6 MVC\n        - Documentation on the ResponseHeaders class can be found [here](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.headers.responseheaders.headers?view=aspnetcore-6.0#microsoft-aspnetcore-http-headers-responseheaders-headers).\n- **java**\n    - This contains an example with Spring Boot\n        - Spring documentation on adding [headers](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/HttpHeaders.html#set-java.lang.String-java.lang.String-) to a [Response Entity](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/ResponseEntity.html).\n- **node**\n    - This contains an example with Express\n        - [Documentation](https://expressjs.com/en/5x/api.html#res.set) for Express.\n        - [Documentation](https://nodejs.org/api/http.html#responsesetheadername-value) for plain Node.\n- **php**\n    - This contains an example with Laravel and plain PHP\n        - Laravel's response object documentation can be found [here](https://laravel.com/docs/9.x/responses#attaching-headers-to-responses)\n\n        - PHP header [documentation](https://www.php.net/manual/en/function.header.php)\n- **python**\n    - This contains an example with Flask\n        - Flask [documentation](https://flask.palletsprojects.com/en/2.1.x/api/?highlight=headers#response-objects) on response headers.\n\n        - Django [documentation](https://docs.djangoproject.com/en/4.0/ref/request-response/#setting-header-fields-1) on response headers.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fcustom-response-header-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajsalemo%2Fcustom-response-header-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fcustom-response-header-examples/lists"}