{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/258","repository_url":"https://api.github.com/repos/spring-projects/spring-restdocs","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/258/comments","events_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/258/events","html_url":"https://github.com/spring-projects/spring-restdocs/issues/258","id":159390946,"number":258,"title":"Possibility to show host header in curl-request.adoc","user":{"login":"mle-enso","id":19837044,"avatar_url":"https://avatars.githubusercontent.com/u/19837044?v=3","gravatar_id":"","url":"https://api.github.com/users/mle-enso","html_url":"https://github.com/mle-enso","followers_url":"https://api.github.com/users/mle-enso/followers","following_url":"https://api.github.com/users/mle-enso/following{/other_user}","gists_url":"https://api.github.com/users/mle-enso/gists{/gist_id}","starred_url":"https://api.github.com/users/mle-enso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mle-enso/subscriptions","organizations_url":"https://api.github.com/users/mle-enso/orgs","repos_url":"https://api.github.com/users/mle-enso/repos","events_url":"https://api.github.com/users/mle-enso/events{/privacy}","received_events_url":"https://api.github.com/users/mle-enso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T12:00:25Z","updated_at":"2016-06-09T12:00:25Z","closed_at":null,"body":"Due to a rather uncommon domain design of our platform we depend at least for fallback reasons on host header information.\r\n\r\nWhile documenting of host header information is no problem like shown here…\r\n```java\r\ngiven(getRequestSpecForDEWithPreisvergleich())\r\n                .config(RestAssuredConfig.config().redirect(RedirectConfig.redirectConfig().followRedirects(false)))\r\n                .when()\r\n                .filter(document(\"host-header\",\r\n                        requestHeaders(\r\n                                headerWithName(\"Host\").description(\"An alternative way to point to a sub-domain\"))\r\n                        ))\r\n                .header(\"Host\", \"www.host.tld\")\r\n                .get(\"/endpoint\")\r\n                .then()\r\n                .statusCode(301);\r\n```\r\n…the host header documentation exists in http-request.adoc but **not** in curl-request.adoc.\r\n\r\nI've found `org.springframework.restdocs.cli.CliOperationRequest` which explicitly excludes the host header from the documented CLI (curl) output.\r\n\r\nThe question is: Is there any possibility to configure the headers which should be excluded from being documented in curl-request.adoc?"}}
{"actor":{"display_login":"mle-enso"}}