Skip to content

HttpEvent

public structHttpEvent: Sendable

HTTP response payload delivered to BGGeo.onHttp.

The SDK fires this event after every upload attempt — whether the request succeeded or failed. Use it to inspect the server response, handle errors, or trigger follow-up logic in your app.


Members

isSuccess

public let isSuccess: Bool

true when the server returned a 2xx status code.

responseText

public let responseText: String

Raw response body returned by the server.

Parse this string to extract server-side data, error messages, or remote-control commands embedded in the response.

statusCode

public let statusCode: Int

HTTP status code returned by the server (e.g. 200, 201, 404, 500).