{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/287","repository_url":"https://api.github.com/repos/apple/swift-corelibs-foundation","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/287/comments","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/287/events","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/287","id":141047369,"number":287,"title":"Implement NSHTTPURLResponse","user":{"login":"danieleggert","id":869753,"avatar_url":"https://avatars.githubusercontent.com/u/869753?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleggert","html_url":"https://github.com/danieleggert","followers_url":"https://api.github.com/users/danieleggert/followers","following_url":"https://api.github.com/users/danieleggert/following{/other_user}","gists_url":"https://api.github.com/users/danieleggert/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleggert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleggert/subscriptions","organizations_url":"https://api.github.com/users/danieleggert/orgs","repos_url":"https://api.github.com/users/danieleggert/repos","events_url":"https://api.github.com/users/danieleggert/events{/privacy}","received_events_url":"https://api.github.com/users/danieleggert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T17:38:27Z","updated_at":"2016-03-18T16:08:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/287","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/287","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/287.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/287.patch"},"body":"This implements both the trivial attributes (`statusCode` and `allHeaderFields`), and also parses the headers in order to set the following attributes:\r\n```\r\npublic var MIMEType: String? { get }\r\npublic var expectedContentLength: Int64 { get }\r\npublic var textEncodingName: String? { get }\r\npublic var suggestedFilename: String? { get }\r\n```\r\nAdded tests for these.\r\n\r\nThe\r\n```\r\npublic class func localizedStringForStatusCode(statusCode: Int) -> String { NSUnimplemented() }\r\n```\r\nmethod on `NSHTTPURLResponse` is still unimplemented."},"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments/198429454","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/287#issuecomment-198429454","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/287","id":198429454,"user":{"login":"danieleggert","id":869753,"avatar_url":"https://avatars.githubusercontent.com/u/869753?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleggert","html_url":"https://github.com/danieleggert","followers_url":"https://api.github.com/users/danieleggert/followers","following_url":"https://api.github.com/users/danieleggert/following{/other_user}","gists_url":"https://api.github.com/users/danieleggert/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleggert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleggert/subscriptions","organizations_url":"https://api.github.com/users/danieleggert/orgs","repos_url":"https://api.github.com/users/danieleggert/repos","events_url":"https://api.github.com/users/danieleggert/events{/privacy}","received_events_url":"https://api.github.com/users/danieleggert/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T16:08:36Z","updated_at":"2016-03-18T16:08:36Z","body":"Thanks for the feedback. I’ve tried to address you suggesting with ae45629 and 82a818e. I’ll squash everything into a single commit if / once I get a green light."}}