{"action":"created","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1229","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1229/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1229/events","html_url":"https://github.com/go-swagger/go-swagger/issues/1229","id":267769418,"node_id":"MDU6SXNzdWUyNjc3Njk0MTg=","number":1229,"title":"How to get http.ResponseWriter in the generated code","user":{"login":"huikang","id":463631,"node_id":"MDQ6VXNlcjQ2MzYzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/463631?v=4","gravatar_id":"","url":"https://api.github.com/users/huikang","html_url":"https://github.com/huikang","followers_url":"https://api.github.com/users/huikang/followers","following_url":"https://api.github.com/users/huikang/following{/other_user}","gists_url":"https://api.github.com/users/huikang/gists{/gist_id}","starred_url":"https://api.github.com/users/huikang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huikang/subscriptions","organizations_url":"https://api.github.com/users/huikang/orgs","repos_url":"https://api.github.com/users/huikang/repos","events_url":"https://api.github.com/users/huikang/events{/privacy}","received_events_url":"https://api.github.com/users/huikang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-23T18:26:20Z","updated_at":"2018-11-07T05:34:51Z","closed_at":"2017-10-25T02:31:37Z","author_association":"CONTRIBUTOR","body":"In some of my API implementation, both the ResponseWriter and http.Request are needed.\r\nI know that I can get the (r *http.Request) by \r\n\r\n```go\r\n_, err := myFunc(params.HTTPRequest)\r\n```\r\n\r\nHowever, I could not find where to get the instance of  http.ResponseWriter in the generated code. Can anyone help? Thanks."},"comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments/436510297","html_url":"https://github.com/go-swagger/go-swagger/issues/1229#issuecomment-436510297","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1229","id":436510297,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjUxMDI5Nw==","user":{"login":"sachnk","id":5503945,"node_id":"MDQ6VXNlcjU1MDM5NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/5503945?v=4","gravatar_id":"","url":"https://api.github.com/users/sachnk","html_url":"https://github.com/sachnk","followers_url":"https://api.github.com/users/sachnk/followers","following_url":"https://api.github.com/users/sachnk/following{/other_user}","gists_url":"https://api.github.com/users/sachnk/gists{/gist_id}","starred_url":"https://api.github.com/users/sachnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachnk/subscriptions","organizations_url":"https://api.github.com/users/sachnk/orgs","repos_url":"https://api.github.com/users/sachnk/repos","events_url":"https://api.github.com/users/sachnk/events{/privacy}","received_events_url":"https://api.github.com/users/sachnk/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T05:34:51Z","updated_at":"2018-11-07T05:34:51Z","author_association":"NONE","body":"Hmm, I see, thanks. That seems to work.\r\n\r\nI also tried modifying the template to include the `http.ResponseWriter` within the input parameter object of every request, just like how `http.Request` is stored.\r\n\r\nThis strikes me as having more symmetrical semantics and usage. Unless there's some obvious downside I'm unaware of...\r\n"}}
{"actor":{"display_login":"sachnk"}}