From c65262e3eac517f287bd322ad19ff0781e161398 Mon Sep 17 00:00:00 2001 From: Alexander Loren Date: Mon, 19 Oct 2026 13:48:32 -0700 Subject: [PATCH] Created a request to ping the server --- Sources/JellyKit/Requests/PingRequest.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Sources/JellyKit/Requests/PingRequest.swift diff --git a/Sources/JellyKit/Requests/PingRequest.swift b/Sources/JellyKit/Requests/PingRequest.swift new file mode 100644 index 0000000..1327f78 --- /dev/null +++ b/Sources/JellyKit/Requests/PingRequest.swift @@ -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 +}