#include "third_party/blink/renderer/core/fetch/headers.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_bytestringbytestringrecord_bytestringsequencesequence.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/cors/cors.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_utils.h"
#include "third_party/blink/renderer/platform/wtf/text/string_view.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
Headers::HeadersIterationSource::HeadersIterationSource(Headers* headers)
: … { … }
void Headers::HeadersIterationSource::ResetHeaderList() { … }
bool Headers::HeadersIterationSource::FetchNextItem(ScriptState* script_state,
String& key,
String& value,
ExceptionState& exception) { … }
void Headers::HeadersIterationSource::Trace(Visitor* visitor) const { … }
Headers::HeadersIterationSource::~HeadersIterationSource() = default;
Headers* Headers::Create(ScriptState* script_state, ExceptionState&) { … }
Headers* Headers::Create(ScriptState* script_state,
const V8HeadersInit* init,
ExceptionState& exception_state) { … }
Headers* Headers::Create(FetchHeaderList* header_list) { … }
Headers* Headers::Clone() const { … }
void Headers::append(ScriptState* script_state,
const String& name,
const String& value,
ExceptionState& exception_state) { … }
void Headers::remove(ScriptState* script_state,
const String& name,
ExceptionState& exception_state) { … }
String Headers::get(const String& name, ExceptionState& exception_state) { … }
Vector<String> Headers::getSetCookie() { … }
bool Headers::has(const String& name, ExceptionState& exception_state) { … }
void Headers::set(ScriptState* script_state,
const String& name,
const String& value,
ExceptionState& exception_state) { … }
void Headers::FillWith(ScriptState* script_state,
const Headers* object,
ExceptionState& exception_state) { … }
void Headers::FillWith(ScriptState* script_state,
const V8HeadersInit* init,
ExceptionState& exception_state) { … }
void Headers::FillWith(ScriptState* script_state,
const Vector<Vector<String>>& object,
ExceptionState& exception_state) { … }
void Headers::FillWith(ScriptState* script_state,
const Vector<std::pair<String, String>>& object,
ExceptionState& exception_state) { … }
void Headers::RemovePrivilegedNoCorsRequestHeaders() { … }
Headers::Headers()
: … { … }
Headers::Headers(FetchHeaderList* header_list)
: … { … }
void Headers::Trace(Visitor* visitor) const { … }
PairSyncIterable<Headers>::IterationSource* Headers::CreateIterationSource(
ScriptState*,
ExceptionState&) { … }
}