vadymmarkov / Malibu

:surfer: Malibu is a networking library built on promises

Home Page:https://vadymmarkov.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation Error for Pre-processing

placrosse opened this issue · comments

Pre-processing

// Use this closure to modify your Request value before URLRequest
// is created on base of it
networking.beforeEach = { request in
var request = request
request.message.parameters["userId"] = "12345" // <=== line does not compile, due to both no message on request, and parameters not mutable

return request
}

Hi @placrosse! You're right. There is a PR that adds a new method to modify requests https://github.com/hyperoslo/Malibu/pull/107. Documentation has also been updated.