<commit_before>//
//  Request.swift
//  Blackfire
//
//  Created by <NAME> on 20/01/2017.
//
//

import Foundation

public class Request: HTTPRequest {
  public let params: [String: String]
  
  init(params: [String: String], raw: HTTPRequest) {
    self.params = params
    super.init(headers: raw.headers, method: raw.method,
               body: raw.body, path: raw.path, httpProtocol: raw.httpProtocol)
  }
}<commit_msg>raw http request now stored instead of inherited in standard request<commit_after>//
//  Request.swift
//  Blackfire
//
//  Created by <NAME> on 20/01/2017.
//
//

import Foundation

public class Request {
  public let params: [String: String]
  
  let raw: HTTPRequest
  
  public var query: [String: Any] {
    return raw.query
  }
  
  public var path: String {
    return raw.path
  }
  
  public var headers: [String: String] {
    return raw.headers
  }
  
  public var method: HTTPMethod {
    return raw.method
  }
  
  public var body: String {
    return raw.body
  }
  
  public var httpProtocol: String {
    return raw.httpProtocol
  }
  
  init(params: [String: String], raw: HTTPRequest) {
    self.params = params
    self.raw = raw
  }
  
}
{'fraction_non_alphanumeric': 0.1126164267569856, 'fraction_numerical': 0.013547840812870448, 'mean_word_length': 2.5602409638554215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5192746', 'n_tokens_mistral': 397, 'n_tokens_neox': 381, 'n_words': 114}