Sha256: 0b87407232454c4056eeaa95e3892ad22d2196226cf8f24fd4c48c66f1ace13d

Contents?: true

Size: 484 Bytes

Versions: 19

Compression:

Stored size: 484 Bytes

Contents

#include "Header.h"
#include "WebPage.h"
#include "WebPageManager.h"
#include "NetworkAccessManager.h"

Header::Header(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}

void Header::start() {
  QString key = arguments()[0];
  QString value = arguments()[1];
  if (key.toLower().replace("-", "_") == "user_agent") {
    page()->setUserAgent(value);
  } else {
    manager()->addHeader(key, value);
  }
  finish(true);
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
capybara-webkit-1.15.1 src/Header.cpp
capybara-webkit-1.15.0 src/Header.cpp
capybara-webkit-1.14.0 src/Header.cpp
capybara-webkit-1.13.0 src/Header.cpp
capybara-webkit-1.12.0 src/Header.cpp
capybara-webkit-1.11.1 src/Header.cpp
capybara-webkit-1.11.0 src/Header.cpp
capybara-webkit-1.10.1 src/Header.cpp
capybara-webkit-1.10.0 src/Header.cpp
capybara-webkit-1.9.0 src/Header.cpp
capybara-webkit-1.8.0 src/Header.cpp
capybara-webkit-1.7.1 src/Header.cpp
capybara-webkit-1.7.0 src/Header.cpp
capybara-webkit-1.6.0 src/Header.cpp
capybara-webkit-1.5.2 src/Header.cpp
capybara-webkit-1.5.1 src/Header.cpp
capybara-webkit-1.5.0 src/Header.cpp
capybara-webkit-1.4.1 src/Header.cpp
capybara-webkit-1.4.0 src/Header.cpp