Adds HTTP method, headers, and a body string. Also use a common function to substitute params rather to allow for maintanence of a common dictionary. Signed-off-by: kingbri <bdashore3@proton.me>
25 lines
646 B
Swift
25 lines
646 B
Swift
//
|
|
// SourceRequest+CoreDataProperties.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 6/10/24.
|
|
//
|
|
//
|
|
|
|
import CoreData
|
|
import Foundation
|
|
|
|
public extension SourceRequest {
|
|
@nonobjc class func fetchRequest() -> NSFetchRequest<SourceRequest> {
|
|
NSFetchRequest<SourceRequest>(entityName: "SourceRequest")
|
|
}
|
|
|
|
@NSManaged var method: String?
|
|
@NSManaged var headers: [String: String]?
|
|
@NSManaged var body: String?
|
|
@NSManaged var parentHtmlParser: SourceHtmlParser?
|
|
@NSManaged var parentRssParser: SourceRssParser?
|
|
@NSManaged var parentJsonParser: SourceJsonParser?
|
|
}
|
|
|
|
extension SourceRequest: Identifiable {}
|