Sha256: 705afb907bb6972db2fc581a66874c65f650ec1e112777191b1a15808a971fbc

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

#include "Headers.h"
#include "WebPage.h"
#include "WebPageManager.h"

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

void Headers::start() {
  QStringList headers;

  foreach(QNetworkReply::RawHeaderPair header, page()->pageHeaders())
    headers << header.first+": "+header.second;

  emit finished(new Response(true, headers.join("\n")));
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capybara-webkit-0.13.2 src/Headers.cpp
capybara-webkit-0.13.1 src/Headers.cpp
capybara-webkit-0.13.0 src/Headers.cpp