Http Sender
class HttpSender @JvmOverloads() constructor(config: CoreConfiguration, method: HttpSender.Method?, type: StringFormat?, formUri: String?) : ReportSender
Content copied to clipboard
Create a new HttpSender instance with its destination taken from the supplied config.
Author
F43nd1r & Various
Parameters
config
AcraConfig declaring the
method
HTTP Method to be used to send data. Currently only Method.POST and Method.PUT are available. If Method.PUT is used, the ReportField.REPORT_ID is appended to the formUri to be compliant with RESTful APIs.
type
StringFormat of encoding used to send the report body. StringFormat.KEY_VALUE_LIST is a simple Key/Value pairs list as defined by the application/x-www-form-urlencoded mime type.
Constructors
HttpSender
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
AcraConfig declaring the
Types
Method
Link copied to clipboard
Functions
requiresForeground
Link copied to clipboard
send
Link copied to clipboard
open fun send(context: Context, errorContent: CrashReportData, extras: Bundle)
Content copied to clipboard
setBasicAuth
Link copied to clipboard