mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
7b2c55eff6
--HG-- extra : rebase_source : 0da394758a5ccf6c1fe87d1a51ed0c4c27d9350e
25 lines
690 B
C++
25 lines
690 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "InternalResponse.h"
|
|
|
|
#include "nsIDOMFile.h"
|
|
|
|
#include "mozilla/dom/Headers.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
InternalResponse::InternalResponse(uint16_t aStatus, const nsACString& aStatusText)
|
|
: mType(ResponseType::Default)
|
|
, mStatus(aStatus)
|
|
, mStatusText(aStatusText)
|
|
, mHeaders(new Headers(nullptr, HeadersGuardEnum::Response))
|
|
{
|
|
}
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|