{"action":"created","issue":{"url":"https://api.github.com/repos/wg/wrk/issues/339","repository_url":"https://api.github.com/repos/wg/wrk","labels_url":"https://api.github.com/repos/wg/wrk/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/wg/wrk/issues/339/comments","events_url":"https://api.github.com/repos/wg/wrk/issues/339/events","html_url":"https://github.com/wg/wrk/issues/339","id":323774931,"number":339,"title":"Support HTTP 1.0","user":{"login":"kellabyte","id":676347,"avatar_url":"https://avatars1.githubusercontent.com/u/676347?v=4","gravatar_id":"","url":"https://api.github.com/users/kellabyte","html_url":"https://github.com/kellabyte","followers_url":"https://api.github.com/users/kellabyte/followers","following_url":"https://api.github.com/users/kellabyte/following{/other_user}","gists_url":"https://api.github.com/users/kellabyte/gists{/gist_id}","starred_url":"https://api.github.com/users/kellabyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellabyte/subscriptions","organizations_url":"https://api.github.com/users/kellabyte/orgs","repos_url":"https://api.github.com/users/kellabyte/repos","events_url":"https://api.github.com/users/kellabyte/events{/privacy}","received_events_url":"https://api.github.com/users/kellabyte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-16T20:30:04Z","updated_at":"2018-05-21T04:04:13Z","closed_at":null,"author_association":"NONE","body":"I was wondering if you could support HTTP 1.0 so that we can send out requests with the following change.\r\n\r\nHTTP 1.1 requires the following.\r\n```\r\nGET / HTTP/1.1\\r\\nHost: 127.0.0.1:8000\\r\\n\r\n```\r\n\r\nHTTP 1.0 allows the following.\r\n```\r\nGET / HTTP/1.0\\r\\n\r\n```\r\n\r\nThis allows us to double as many requests in the same amount of bytes. Maybe a `--http-version` argument?\r\n\r\nI think this would change [this part](https://github.com/wg/wrk/blob/50305ed1d89408c26067a970dcd5d9dbea19de9d/src/wrk.lua#L63) of the code in wrk."},"comment":{"url":"https://api.github.com/repos/wg/wrk/issues/comments/390547451","html_url":"https://github.com/wg/wrk/issues/339#issuecomment-390547451","issue_url":"https://api.github.com/repos/wg/wrk/issues/339","id":390547451,"user":{"login":"wg","id":94529,"avatar_url":"https://avatars2.githubusercontent.com/u/94529?v=4","gravatar_id":"","url":"https://api.github.com/users/wg","html_url":"https://github.com/wg","followers_url":"https://api.github.com/users/wg/followers","following_url":"https://api.github.com/users/wg/following{/other_user}","gists_url":"https://api.github.com/users/wg/gists{/gist_id}","starred_url":"https://api.github.com/users/wg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wg/subscriptions","organizations_url":"https://api.github.com/users/wg/orgs","repos_url":"https://api.github.com/users/wg/repos","events_url":"https://api.github.com/users/wg/events{/privacy}","received_events_url":"https://api.github.com/users/wg/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T04:04:13Z","updated_at":"2018-05-21T04:04:13Z","author_association":"OWNER","body":"Yup the `request()` scripting method must return a string containing the HTTP request. Anything that can be parsed by http_parser is accepted and I don't think it cares about Host header correctness.\r\n\r\nHowever overriding `request()` is most likely going to bottleneck on Lua function execution at the extremely high load levels you're targeting. Internally wrk performs some tricks to optimize the case of a static request, so this is undocumented behavior, but safe enough for now:\r\n\r\n```\r\nwrk.format = function()\r\n   return \"GET / HTTP/1.1\\r\\n\\r\\n\"\r\nend                  \r\n```"}}
{"actor":{"display_login":"wg"}}