Re: [whatwg/fetch] Request body streams that cannot be retried (#538)

Actually that is similar to what Chromium is doing, assuming my code reading is correct (@MattMenke2, please correct me if I'm wrong).

```
bool HttpUtil::IsMethodSafe(base::StringPiece method) {
  return method == "GET" || method == "HEAD" || method == "OPTIONS" ||
         method == "TRACE";
}
...

int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,
                                  CompletionOnceCallback callback,
                                  const NetLogWithSource& net_log) {
  ...
  if (HttpUtil::IsMethodSafe(request_info->method)) {
    can_send_early_data_ = true;
  }
  ...
}
```



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/538#issuecomment-553784404

Received on Thursday, 14 November 2019 08:41:35 UTC