SteamHTTP
public struct SteamHTTP: Sendable
Steamworks ISteamHTTP
Access via http
through a SteamAPI
or SteamGameServerAPI
instance.
Topics
func createHTTPRequest(httpRequestMethod: HTTPMethod, absoluteURL: String) -> HTTPRequestHandle
func createHTTPRequest(httpRequestMethod: HTTPMethod, absoluteURL: String) -> HTTPRequestHandle
Steamworks ISteamHTTP::CreateHTTPRequest()
Declaration
public func createHTTPRequest(
httpRequestMethod: HTTPMethod, absoluteURL: String
) -> HTTPRequestHandle
func deferHTTPRequest(request: HTTPRequestHandle) -> Bool
func deferHTTPRequest(request: HTTPRequestHandle) -> Bool
Steamworks ISteamHTTP::DeferHTTPRequest()
Declaration
@discardableResult
public func deferHTTPRequest(request: HTTPRequestHandle) -> Bool
func getHTTPDownloadProgressPct(request: HTTPRequestHandle) -> (rc: Bool, percent: Float)
func getHTTPDownloadProgressPct(request: HTTPRequestHandle) -> (rc: Bool, percent: Float)
Steamworks ISteamHTTP::GetHTTPDownloadProgressPct()
Declaration
public func getHTTPDownloadProgressPct(request: HTTPRequestHandle) -> (
rc: Bool, percent: Float
)
func getHTTPRequestWasTimedOut(request: HTTPRequestHandle) -> (rc: Bool, wasTimedOut: Bool)
func getHTTPRequestWasTimedOut(request: HTTPRequestHandle) -> (rc: Bool, wasTimedOut: Bool)
Steamworks ISteamHTTP::GetHTTPRequestWasTimedOut()
Declaration
public func getHTTPRequestWasTimedOut(request: HTTPRequestHandle) -> (
rc: Bool, wasTimedOut: Bool
)
func getHTTPResponseBodyData(request: HTTPRequestHandle, bufferSize: Int) -> (rc: Bool, bodyDataBuffer: [UInt8])
func getHTTPResponseBodyData(request: HTTPRequestHandle, bufferSize: Int) -> (rc: Bool, bodyDataBuffer: [UInt8])
Steamworks ISteamHTTP::GetHTTPResponseBodyData()
Declaration
public func getHTTPResponseBodyData(request: HTTPRequestHandle, bufferSize: Int)
-> (rc: Bool, bodyDataBuffer: [UInt8])
func getHTTPResponseBodySize(request: HTTPRequestHandle) -> (rc: Bool, bodySize: Int)
func getHTTPResponseBodySize(request: HTTPRequestHandle) -> (rc: Bool, bodySize: Int)
Steamworks ISteamHTTP::GetHTTPResponseBodySize()
Declaration
public func getHTTPResponseBodySize(request: HTTPRequestHandle) -> (
rc: Bool, bodySize: Int
)
func getHTTPResponseHeaderSize(request: HTTPRequestHandle, headerName: String) -> (rc: Bool, responseHeaderSize: Int)
func getHTTPResponseHeaderSize(request: HTTPRequestHandle, headerName: String) -> (rc: Bool, responseHeaderSize: Int)
Steamworks ISteamHTTP::GetHTTPResponseHeaderSize()
Declaration
public func getHTTPResponseHeaderSize(
request: HTTPRequestHandle, headerName: String
) -> (rc: Bool, responseHeaderSize: Int)
func getHTTPResponseHeaderValue(request: HTTPRequestHandle, headerName: String, bufferSize: Int) -> (rc: Bool, headerValueBuffer: [UInt8])
func getHTTPResponseHeaderValue(request: HTTPRequestHandle, headerName: String, bufferSize: Int) -> (rc: Bool, headerValueBuffer: [UInt8])
Steamworks ISteamHTTP::GetHTTPResponseHeaderValue()
Declaration
public func getHTTPResponseHeaderValue(
request: HTTPRequestHandle, headerName: String, bufferSize: Int
) -> (rc: Bool, headerValueBuffer: [UInt8])
func getHTTPStreamingResponseBodyData(request: HTTPRequestHandle, offset: Int, bodyDataBuffer: UnsafeMutablePointer<UInt8>, bufferSize: Int) -> Bool
func getHTTPStreamingResponseBodyData(request: HTTPRequestHandle, offset: Int, bodyDataBuffer: UnsafeMutablePointer<UInt8>, bufferSize: Int) -> Bool
Steamworks ISteamHTTP::GetHTTPStreamingResponseBodyData()
Declaration
public func getHTTPStreamingResponseBodyData(
request: HTTPRequestHandle, offset: Int,
bodyDataBuffer: UnsafeMutablePointer<UInt8>, bufferSize: Int
) -> Bool
func prioritizeHTTPRequest(request: HTTPRequestHandle) -> Bool
func prioritizeHTTPRequest(request: HTTPRequestHandle) -> Bool
Steamworks ISteamHTTP::PrioritizeHTTPRequest()
Declaration
@discardableResult
public func prioritizeHTTPRequest(request: HTTPRequestHandle) -> Bool
func releaseHTTPRequest(request: HTTPRequestHandle) -> Bool
func releaseHTTPRequest(request: HTTPRequestHandle) -> Bool
Steamworks ISteamHTTP::ReleaseHTTPRequest()
Declaration
@discardableResult
public func releaseHTTPRequest(request: HTTPRequestHandle) -> Bool
func setHTTPRequestAbsoluteTimeoutMS(request: HTTPRequestHandle, milliseconds: Int) -> Bool
func setHTTPRequestAbsoluteTimeoutMS(request: HTTPRequestHandle, milliseconds: Int) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestAbsoluteTimeoutMS()
Declaration
public func setHTTPRequestAbsoluteTimeoutMS(
request: HTTPRequestHandle, milliseconds: Int
) -> Bool
func setHTTPRequestContextValue(request: HTTPRequestHandle, contextValue: UInt64) -> Bool
func setHTTPRequestContextValue(request: HTTPRequestHandle, contextValue: UInt64) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestContextValue()
Declaration
public func setHTTPRequestContextValue(
request: HTTPRequestHandle, contextValue: UInt64
) -> Bool
func setHTTPRequestGetOrPostParameter(request: HTTPRequestHandle, paramName: String, paramValue: String) -> Bool
func setHTTPRequestGetOrPostParameter(request: HTTPRequestHandle, paramName: String, paramValue: String) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestGetOrPostParameter()
Declaration
public func setHTTPRequestGetOrPostParameter(
request: HTTPRequestHandle, paramName: String, paramValue: String
) -> Bool
func setHTTPRequestHeaderValue(request: HTTPRequestHandle, headerName: String, headerValue: String) -> Bool
func setHTTPRequestHeaderValue(request: HTTPRequestHandle, headerName: String, headerValue: String) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestHeaderValue()
Declaration
public func setHTTPRequestHeaderValue(
request: HTTPRequestHandle, headerName: String, headerValue: String
) -> Bool
func setHTTPRequestNetworkActivityTimeout(request: HTTPRequestHandle, timeoutSeconds: Int) -> Bool
func setHTTPRequestNetworkActivityTimeout(request: HTTPRequestHandle, timeoutSeconds: Int) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestNetworkActivityTimeout()
Declaration
public func setHTTPRequestNetworkActivityTimeout(
request: HTTPRequestHandle, timeoutSeconds: Int
) -> Bool
func setHTTPRequestRawPostBody(request: HTTPRequestHandle, contentType: String, body: UnsafePointer<UInt8>, bodyLen: Int) -> Bool
func setHTTPRequestRawPostBody(request: HTTPRequestHandle, contentType: String, body: UnsafePointer<UInt8>, bodyLen: Int) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestRawPostBody()
Declaration
public func setHTTPRequestRawPostBody(
request: HTTPRequestHandle, contentType: String, body: UnsafePointer<UInt8>,
bodyLen: Int
) -> Bool
func setHTTPRequestRequiresVerifiedCertificate(request: HTTPRequestHandle, requireVerifiedCertificate: Bool) -> Bool
func setHTTPRequestRequiresVerifiedCertificate(request: HTTPRequestHandle, requireVerifiedCertificate: Bool) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestRequiresVerifiedCertificate()
Declaration
public func setHTTPRequestRequiresVerifiedCertificate(
request: HTTPRequestHandle, requireVerifiedCertificate: Bool
) -> Bool
func setHTTPRequestUserAgentInfo(request: HTTPRequestHandle, userAgentInfo: String) -> Bool
func setHTTPRequestUserAgentInfo(request: HTTPRequestHandle, userAgentInfo: String) -> Bool
Steamworks ISteamHTTP::SetHTTPRequestUserAgentInfo()
Declaration
@discardableResult
public func setHTTPRequestUserAgentInfo(
request: HTTPRequestHandle, userAgentInfo: String
) -> Bool
func sendHTTPRequest(request: HTTPRequestHandle, completion: sending (HTTPRequestCompleted?) -> Void)
func sendHTTPRequest(request: HTTPRequestHandle, completion: sending (HTTPRequestCompleted?) -> Void)
Steamworks ISteamHTTP::SendHTTPRequest()
Declaration
public func sendHTTPRequest(
request: HTTPRequestHandle,
completion: sending @escaping (HTTPRequestCompleted?) -> Void)
func sendHTTPRequestAndStreamResponse(request: HTTPRequestHandle, completion: sending (HTTPRequestCompleted?) -> Void)
func sendHTTPRequestAndStreamResponse(request: HTTPRequestHandle, completion: sending (HTTPRequestCompleted?) -> Void)
Steamworks ISteamHTTP::SendHTTPRequestAndStreamResponse()
Declaration
public func sendHTTPRequestAndStreamResponse(
request: HTTPRequestHandle,
completion: sending @escaping (HTTPRequestCompleted?) -> Void)
func getHTTPResponseBodyData(request: HTTPRequestHandle) -> (rc: Bool, bodyDataBuffer: [UInt8])
func getHTTPResponseBodyData(request: HTTPRequestHandle) -> (rc: Bool, bodyDataBuffer: [UInt8])
Provided by module SteamworksHelpers
.
Steamworks ISteamHTTP::GetHTTPResponseBodyData()
Declaration
public func getHTTPResponseBodyData(request: HTTPRequestHandle) -> (
rc: Bool, bodyDataBuffer: [UInt8]
)
func getHTTPResponseHeaderValue(request: HTTPRequestHandle, headerName: String) -> (rc: Bool, headerValueBuffer: [UInt8])
func getHTTPResponseHeaderValue(request: HTTPRequestHandle, headerName: String) -> (rc: Bool, headerValueBuffer: [UInt8])
Provided by module SteamworksHelpers
.
Steamworks ISteamHTTP::GetHTTPResponseHeaderValue()
Declaration
public func getHTTPResponseHeaderValue(
request: HTTPRequestHandle, headerName: String
) -> (rc: Bool, headerValueBuffer: [UInt8])