Created a request to ping the server
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
//
|
||||||
|
// PingRequest.swift
|
||||||
|
// JellyKit
|
||||||
|
//
|
||||||
|
// Created by Alex Loren on 10/19/26.
|
||||||
|
//
|
||||||
|
|
||||||
|
/// Sends a ping to the Emby or Jellyfin server.
|
||||||
|
/// Should be used exclusively with the `Client.statusRequest` function.
|
||||||
|
/// The server will respond with a code of 200 and a body string when successful.
|
||||||
|
struct PingRequest: Request {
|
||||||
|
// MARK: - Properties
|
||||||
|
var endpoint: String = "/System/Ping"
|
||||||
|
var method: String = "GET"
|
||||||
|
var headers: [String : String]? = nil
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user