GitHub PullRequestReviewCommentEvent at 2014-09-17 16:09:52
Repository: translation-project
Actor: garbagetown
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/comments/17674082","id":17674082,"diff_hunk":"@@ -45,118 +80,225 @@ import com.ning.http.client.Realm.AuthScheme\n WS.url(url).withAuth(user, password, AuthScheme.BASIC).get()\n ```\n \n+<!--\n ### Request with follow redirects\n+-->\n+### リダイレクトの設定\n \n+<!--\n If an HTTP call results in a 302 or a 301 redirect, you can automatically follow the redirect without having to make another call.\n+-->\n+もし、 HTTP 呼び出しの結果が、 302 や 301 のようなリダイレクトであるなら、 他のメソッド呼び出しをしなくとも自動的にリダイレクトされます。\n \n ```scala\n WS.url(url).withFollowRedirects(true).get()\n ```\n \n+<!--\n ### Request with query parameters\n+-->\n+### クエリストリングの設定\n \n+<!--\n Parameters can be specified as a series of key/value tuples.\n+-->\n+パラメーターは、 キー/値のタプルをつなげて設定します。\n \n ```scala\n WS.url(url).withQueryString(\"paramKey\" -> \"paramValue\").get()\n ```\n \n+<!--\n ### Request with additional headers\n+-->\n+### ヘッダの設定\n \n+<!--\n Headers can be specified as a series of key/value tuples.\n+-->\n+ヘッダは、キー/値のタプルをつなげて設定します。\n \n ```scala\n WS.url(url).withHeaders(\"headerKey\" -> \"headerValue\").get()\n ```\n \n+<!--\n If you are sending plain text in a particular format, you may want to define the content type explicitly.\n+-->\n+もし、　プレーンなテキストを特定のフォーマットで送信したいのなら、 コンテントタイプを明示的に設定する必要があります。\n \n ```scala\n WS.url(url).withHeaders(\"Content-Type\" -> \"text-xml\").post(xmlString)\n ```\n \n+<!--\n ### Request with virtual host\n+-->\n+### バーチャルホストの設定\n \n+<!--\n A virtual host can be specified as a string.\n+-->\n+バーチャルホストは文字列で設定します。\n \n ```scala\n WS.url(url).withVirtualHost(\"192.168.1.1\").get()\n ```\n \n+<!--\n ### Request with time out\n+-->\n+### タイムアウトの設定\n \n+<!--\n If you need to give a server more time to process, you can use `withTimeout` to set a value in milliseconds.  You may want to use this for extremely large files.\n+-->\n+もし、サーバーでの処理に要する時間が多くなるなら、 `withTimeout`　をミリ秒で設定することができます。 巨大なファイルを扱う場合などに使うことができます。\n+\n \n ```scala\n WS.url(url).withTimeout(1000).get()\n ```\n \n+<!--\n ### Submitting form data\n+-->\n+### フォームデータの送信\n \n+<!--\n To post url-form-encoded data a `Map[String, Seq[String]]` needs to be passed into `post`.\n+-->\n+フォームエンコードされたデータを POST で送信するには、 `post` に `Map[String, Seq[String]]` を渡す必要があります。\n \n ```scala\n WS.url(url).post(Map(\"key\" -> Seq(\"value\")))\n ```\n \n+<!--\n ### Submitting JSON data\n+-->\n+### JSON データの送信\n \n+<!--\n The easiest way to post JSON data is to use the [[JSON|ScalaJson]] library.\n+-->\n+JSON データを送信する最も簡単な方法は、 [[JSON|ScalaJson]] ライブラリを使うことです。\n \n @[scalaws-post-json](code/ScalaWSSpec.scala)\n \n+<!--\n ### Submitting XML data\n+-->\n+### XML データの送信\n \n+<!--\n The easiest way to post XML data is to use XML literals.  XML literals are convenient, but not very fast.  For efficiency, consider using an XML view template, or a JAXB library.\n+-->\n+XML データを送信する最も簡単な方法は、 XML リテラルを使う事です。 XML リテラルは便利ですが、　それほど速くはありません。　効率を重視するなら、 XML view template や JAXB ライブラリを使う事を検討してください。\n \n @[scalaws-post-xml](code/ScalaWSSpec.scala)\n \n+\n+<!--\n ## Processing the Response\n+-->\n+## レスポンスの処理\n \n+<!--\n Working with the [Response](api/scala/index.html#play.api.libs.ws.Response) is easily done by mapping inside the [Future](http://www.scala-lang.org/api/current/index.html#scala.concurrent.Future).\n+-->\n+[Response](api/scala/index.html#play.api.libs.ws.Response)　に対する操作は [Future](http://www.scala-lang.org/api/current/index.html#scala.concurrent.Future) の中でマッピングをすることで簡単に行えます。\n \n+<!--\n The examples given below have some common dependencies that will be shown once here for brevity.\n+-->\n+以降の例には、いくつか共通の依存コードがあります。簡潔にするため、ここで1度だけ掲載します。\n \n+<!--\n An execution context, required for Future.map:\n+-->\n+Future.map が必要とする実行時コンテキストです。\n \n @[scalaws-context](code/ScalaWSSpec.scala)\n \n+<!--\n and a case class that will be used for serialization / deserialization:\n+-->\n+シリアライゼーション/デシリアラーゼーションで使用するケースクラスです。\n \n @[scalaws-person](code/ScalaWSSpec.scala)\n \n+<!--\n ### Processing a response as JSON\n+-->\n+### JSON レスポンスの処理\n \n+<!--\n You can process the response as a [JSON object](api/scala/index.html#play.api.libs.json.JsValue) by calling `response.json`.\n+-->\n+レスポンスを [JSON オブジェクト](api/scala/index.html#play.api.libs.json.JsValue) として処理するには、 `response.json` を呼び出します。\n \n @[scalaws-process-json](code/ScalaWSSpec.scala)\n \n+<!--\n The JSON library has a [[useful feature|ScalaJsonCombinators]] that will map an implicit [`Reads[T]`](api/scala/index.html#play.api.libs.json.Reads) directly to a class:\n+-->\n+JSON ライブラリには　[[有用な機能|ScalaJsonCombinators]] があり、暗黙の [`Reads[T]`](api/scala/index.html#play.api.libs.json.Reads) により直接クラスにマップすることができます。\n \n @[scalaws-process-json-with-implicit](code/ScalaWSSpec.scala)\n \n+<!--\n ### Processing a response as XML\n+-->\n+### XML レスポンスの処理\n \n+<!--\n You can process the response as an [XML literal](http://www.scala-lang.org/api/current/index.html#scala.xml.NodeSeq) by calling `response.xml`.\n+-->\n+レスポンスを　[XML リテラル](http://www.scala-lang.org/api/current/index.html#scala.xml.NodeSeq) として処理するには、 `response.xml` を呼び出します。\n \n @[scalaws-process-xml](code/ScalaWSSpec.scala)\n \n+<!--\n ### Processing large responses\n+-->\n+### 巨大なレスポンスの処理\n \n+<!--\n Calling `get()` or `post()` will cause the body of the request to be loaded into memory before the response is made available.  When you are downloading with large, multi-gigabyte files, this may result in unwelcome garbage collection or even out of memory errors.\n+-->","path":"manual/scalaGuide/main/ws/ScalaWS.md","position":269,"original_position":269,"commit_id":"53e7b07bf986826d2e90157023077a865de823d8","original_commit_id":"53e7b07bf986826d2e90157023077a865de823d8","user":{"login":"garbagetown","id":78121,"avatar_url":"https://avatars.githubusercontent.com/u/78121?v=2","gravatar_id":"681560628decbdf2f4ea68552fb4ec33","url":"https://api.github.com/users/garbagetown","html_url":"https://github.com/garbagetown","followers_url":"https://api.github.com/users/garbagetown/followers","following_url":"https://api.github.com/users/garbagetown/following{/other_user}","gists_url":"https://api.github.com/users/garbagetown/gists{/gist_id}","starred_url":"https://api.github.com/users/garbagetown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garbagetown/subscriptions","organizations_url":"https://api.github.com/users/garbagetown/orgs","repos_url":"https://api.github.com/users/garbagetown/repos","events_url":"https://api.github.com/users/garbagetown/events{/privacy}","received_events_url":"https://api.github.com/users/garbagetown/received_events","type":"User","site_admin":false},"body":"`unexpected` ではなく `unwelcome` なので、`不愉快なガベージコレクション` などとしてはいかがでしょうか","created_at":"2014-09-17T16:09:52Z","updated_at":"2014-09-17T16:09:52Z","html_url":"https://github.com/playframework-ja/translation-project/pull/740#discussion_r17674082","pull_request_url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740","_links":{"self":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/comments/17674082"},"html":{"href":"https://github.com/playframework-ja/translation-project/pull/740#discussion_r17674082"},"pull_request":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740"}}},"pull_request":{"url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740","id":21282511,"html_url":"https://github.com/playframework-ja/translation-project/pull/740","diff_url":"https://github.com/playframework-ja/translation-project/pull/740.diff","patch_url":"https://github.com/playframework-ja/translation-project/pull/740.patch","issue_url":"https://api.github.com/repos/playframework-ja/translation-project/issues/740","number":740,"state":"open","locked":false,"title":"ScalaWS.md を翻訳してみました。よろしくお願いします。","user":{"login":"kencharos","id":159114,"avatar_url":"https://avatars.githubusercontent.com/u/159114?v=2","gravatar_id":"96bb87f5017cc4190a544bc040995f45","url":"https://api.github.com/users/kencharos","html_url":"https://github.com/kencharos","followers_url":"https://api.github.com/users/kencharos/followers","following_url":"https://api.github.com/users/kencharos/following{/other_user}","gists_url":"https://api.github.com/users/kencharos/gists{/gist_id}","starred_url":"https://api.github.com/users/kencharos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kencharos/subscriptions","organizations_url":"https://api.github.com/users/kencharos/orgs","repos_url":"https://api.github.com/users/kencharos/repos","events_url":"https://api.github.com/users/kencharos/events{/privacy}","received_events_url":"https://api.github.com/users/kencharos/received_events","type":"User","site_admin":false},"body":"PR投げるの初めてですので、所作などに不備がありましたらご指摘ください。","created_at":"2014-09-16T08:16:40Z","updated_at":"2014-09-17T16:09:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d954797f870187e8a3c8a8940f3199e965bf289","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740/commits","review_comments_url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740/comments","review_comment_url":"https://api.github.com/repos/playframework-ja/translation-project/pulls/comments/{number}","comments_url":"https://api.github.com/repos/playframework-ja/translation-project/issues/740/comments","statuses_url":"https://api.github.com/repos/playframework-ja/translation-project/statuses/53e7b07bf986826d2e90157023077a865de823d8","head":{"label":"kencharos:patch-1","ref":"patch-1","sha":"53e7b07bf986826d2e90157023077a865de823d8","user":{"login":"kencharos","id":159114,"avatar_url":"https://avatars.githubusercontent.com/u/159114?v=2","gravatar_id":"96bb87f5017cc4190a544bc040995f45","url":"https://api.github.com/users/kencharos","html_url":"https://github.com/kencharos","followers_url":"https://api.github.com/users/kencharos/followers","following_url":"https://api.github.com/users/kencharos/following{/other_user}","gists_url":"https://api.github.com/users/kencharos/gists{/gist_id}","starred_url":"https://api.github.com/users/kencharos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kencharos/subscriptions","organizations_url":"https://api.github.com/users/kencharos/orgs","repos_url":"https://api.github.com/users/kencharos/repos","events_url":"https://api.github.com/users/kencharos/events{/privacy}","received_events_url":"https://api.github.com/users/kencharos/received_events","type":"User","site_admin":false},"repo":{"id":9287981,"name":"playdocja","full_name":"kencharos/playdocja","owner":{"login":"kencharos","id":159114,"avatar_url":"https://avatars.githubusercontent.com/u/159114?v=2","gravatar_id":"96bb87f5017cc4190a544bc040995f45","url":"https://api.github.com/users/kencharos","html_url":"https://github.com/kencharos","followers_url":"https://api.github.com/users/kencharos/followers","following_url":"https://api.github.com/users/kencharos/following{/other_user}","gists_url":"https://api.github.com/users/kencharos/gists{/gist_id}","starred_url":"https://api.github.com/users/kencharos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kencharos/subscriptions","organizations_url":"https://api.github.com/users/kencharos/orgs","repos_url":"https://api.github.com/users/kencharos/repos","events_url":"https://api.github.com/users/kencharos/events{/privacy}","received_events_url":"https://api.github.com/users/kencharos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kencharos/playdocja","description":"a project translates the play! framework's documents into Japanese.","fork":true,"url":"https://api.github.com/repos/kencharos/playdocja","forks_url":"https://api.github.com/repos/kencharos/playdocja/forks","keys_url":"https://api.github.com/repos/kencharos/playdocja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kencharos/playdocja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kencharos/playdocja/teams","hooks_url":"https://api.github.com/repos/kencharos/playdocja/hooks","issue_events_url":"https://api.github.com/repos/kencharos/playdocja/issues/events{/number}","events_url":"https://api.github.com/repos/kencharos/playdocja/events","assignees_url":"https://api.github.com/repos/kencharos/playdocja/assignees{/user}","branches_url":"https://api.github.com/repos/kencharos/playdocja/branches{/branch}","tags_url":"https://api.github.com/repos/kencharos/playdocja/tags","blobs_url":"https://api.github.com/repos/kencharos/playdocja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kencharos/playdocja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kencharos/playdocja/git/refs{/sha}","trees_url":"https://api.github.com/repos/kencharos/playdocja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kencharos/playdocja/statuses/{sha}","languages_url":"https://api.github.com/repos/kencharos/playdocja/languages","stargazers_url":"https://api.github.com/repos/kencharos/playdocja/stargazers","contributors_url":"https://api.github.com/repos/kencharos/playdocja/contributors","subscribers_url":"https://api.github.com/repos/kencharos/playdocja/subscribers","subscription_url":"https://api.github.com/repos/kencharos/playdocja/subscription","commits_url":"https://api.github.com/repos/kencharos/playdocja/commits{/sha}","git_commits_url":"https://api.github.com/repos/kencharos/playdocja/git/commits{/sha}","comments_url":"https://api.github.com/repos/kencharos/playdocja/comments{/number}","issue_comment_url":"https://api.github.com/repos/kencharos/playdocja/issues/comments/{number}","contents_url":"https://api.github.com/repos/kencharos/playdocja/contents/{+path}","compare_url":"https://api.github.com/repos/kencharos/playdocja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kencharos/playdocja/merges","archive_url":"https://api.github.com/repos/kencharos/playdocja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kencharos/playdocja/downloads","issues_url":"https://api.github.com/repos/kencharos/playdocja/issues{/number}","pulls_url":"https://api.github.com/repos/kencharos/playdocja/pulls{/number}","milestones_url":"https://api.github.com/repos/kencharos/playdocja/milestones{/number}","notifications_url":"https://api.github.com/repos/kencharos/playdocja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kencharos/playdocja/labels{/name}","releases_url":"https://api.github.com/repos/kencharos/playdocja/releases{/id}","created_at":"2013-04-08T03:36:49Z","updated_at":"2014-07-28T14:33:07Z","pushed_at":"2014-09-16T08:15:05Z","git_url":"git://github.com/kencharos/playdocja.git","ssh_url":"git@github.com:kencharos/playdocja.git","clone_url":"https://github.com/kencharos/playdocja.git","svn_url":"https://github.com/kencharos/playdocja","homepage":"http://playdocja.appspot.com/","size":20074,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"playframework-ja:2.2.x","ref":"2.2.x","sha":"a74c0d42b4e70d08059b347c2472dc34b255bda8","user":{"login":"playframework-ja","id":1250208,"avatar_url":"https://avatars.githubusercontent.com/u/1250208?v=2","gravatar_id":"21a06736bb34a1c0856322e1df892d41","url":"https://api.github.com/users/playframework-ja","html_url":"https://github.com/playframework-ja","followers_url":"https://api.github.com/users/playframework-ja/followers","following_url":"https://api.github.com/users/playframework-ja/following{/other_user}","gists_url":"https://api.github.com/users/playframework-ja/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework-ja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework-ja/subscriptions","organizations_url":"https://api.github.com/users/playframework-ja/orgs","repos_url":"https://api.github.com/users/playframework-ja/repos","events_url":"https://api.github.com/users/playframework-ja/events{/privacy}","received_events_url":"https://api.github.com/users/playframework-ja/received_events","type":"Organization","site_admin":false},"repo":{"id":1046288,"name":"translation-project","full_name":"playframework-ja/translation-project","owner":{"login":"playframework-ja","id":1250208,"avatar_url":"https://avatars.githubusercontent.com/u/1250208?v=2","gravatar_id":"21a06736bb34a1c0856322e1df892d41","url":"https://api.github.com/users/playframework-ja","html_url":"https://github.com/playframework-ja","followers_url":"https://api.github.com/users/playframework-ja/followers","following_url":"https://api.github.com/users/playframework-ja/following{/other_user}","gists_url":"https://api.github.com/users/playframework-ja/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework-ja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework-ja/subscriptions","organizations_url":"https://api.github.com/users/playframework-ja/orgs","repos_url":"https://api.github.com/users/playframework-ja/repos","events_url":"https://api.github.com/users/playframework-ja/events{/privacy}","received_events_url":"https://api.github.com/users/playframework-ja/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playframework-ja/translation-project","description":"Play Framework Documentation Japanese Translation","fork":false,"url":"https://api.github.com/repos/playframework-ja/translation-project","forks_url":"https://api.github.com/repos/playframework-ja/translation-project/forks","keys_url":"https://api.github.com/repos/playframework-ja/translation-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playframework-ja/translation-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playframework-ja/translation-project/teams","hooks_url":"https://api.github.com/repos/playframework-ja/translation-project/hooks","issue_events_url":"https://api.github.com/repos/playframework-ja/translation-project/issues/events{/number}","events_url":"https://api.github.com/repos/playframework-ja/translation-project/events","assignees_url":"https://api.github.com/repos/playframework-ja/translation-project/assignees{/user}","branches_url":"https://api.github.com/repos/playframework-ja/translation-project/branches{/branch}","tags_url":"https://api.github.com/repos/playframework-ja/translation-project/tags","blobs_url":"https://api.github.com/repos/playframework-ja/translation-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playframework-ja/translation-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playframework-ja/translation-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/playframework-ja/translation-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playframework-ja/translation-project/statuses/{sha}","languages_url":"https://api.github.com/repos/playframework-ja/translation-project/languages","stargazers_url":"https://api.github.com/repos/playframework-ja/translation-project/stargazers","contributors_url":"https://api.github.com/repos/playframework-ja/translation-project/contributors","subscribers_url":"https://api.github.com/repos/playframework-ja/translation-project/subscribers","subscription_url":"https://api.github.com/repos/playframework-ja/translation-project/subscription","commits_url":"https://api.github.com/repos/playframework-ja/translation-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/playframework-ja/translation-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/playframework-ja/translation-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/playframework-ja/translation-project/issues/comments/{number}","contents_url":"https://api.github.com/repos/playframework-ja/translation-project/contents/{+path}","compare_url":"https://api.github.com/repos/playframework-ja/translation-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playframework-ja/translation-project/merges","archive_url":"https://api.github.com/repos/playframework-ja/translation-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playframework-ja/translation-project/downloads","issues_url":"https://api.github.com/repos/playframework-ja/translation-project/issues{/number}","pulls_url":"https://api.github.com/repos/playframework-ja/translation-project/pulls{/number}","milestones_url":"https://api.github.com/repos/playframework-ja/translation-project/milestones{/number}","notifications_url":"https://api.github.com/repos/playframework-ja/translation-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playframework-ja/translation-project/labels{/name}","releases_url":"https://api.github.com/repos/playframework-ja/translation-project/releases{/id}","created_at":"2010-11-02T22:42:25Z","updated_at":"2014-09-17T01:30:36Z","pushed_at":"2014-09-16T15:27:42Z","git_url":"git://github.com/playframework-ja/translation-project.git","ssh_url":"git@github.com:playframework-ja/translation-project.git","clone_url":"https://github.com/playframework-ja/translation-project.git","svn_url":"https://github.com/playframework-ja/translation-project","homepage":"","size":41394,"stargazers_count":30,"watchers_count":30,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":16,"forks":62,"open_issues":16,"watchers":30,"default_branch":"2.2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740"},"html":{"href":"https://github.com/playframework-ja/translation-project/pull/740"},"issue":{"href":"https://api.github.com/repos/playframework-ja/translation-project/issues/740"},"comments":{"href":"https://api.github.com/repos/playframework-ja/translation-project/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/playframework-ja/translation-project/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/playframework-ja/translation-project/statuses/53e7b07bf986826d2e90157023077a865de823d8"}}}}