n_request 1.4.0+1
n_request: ^1.4.0+1 copied to clipboard
Simple helper for http requests
1.4.0+1 #
- [fix] flutter verssion has been downgrade
1.4.0 #
- [fix] The status code of the server is never replaced by 0 anymore. A body that is not valid json (an html error page of a 500, a plain text answer, a file) used to be decoded inside the same try that reported front-end exceptions, so every one of those responses arrived as code 0.
- [fix] Status codes outside the internal catalog (520, 598, and any other vendor specific code) keep their own code and receive the type of their family instead of being collapsed into 0.
- [fix] An empty, null or non-utf8 body no longer breaks the response: the code survives and the body is returned as decoded json, raw text, raw bytes or null.
- [fix] GET routed every failure through
onError, reporting 0 for connection, timeout and ssl problems that the other methods reported correctly. - [fix] Downloads reported 0 for every non-json file, and had no handler for their own timeout. A failed download now reports the code and the message of the server.
- [fix] Socket, ssl, client and timeout failures no longer discard the message of the underlying exception, it is reported in
status.error. - [fix] The header map of the caller is no longer modified with tokens and default headers, and unmodifiable maps no longer throw.
- [fix]
onFinishwas never called. - [fix] Exceptions and body decoding notes are now printed in the terminal.
- [New]
StatusData.isFromServertells a code reported by the server apart from one generated locally (a 503 from the server vs a 503 because the device could not reach it). - [New]
StatusData.reasonPhrase,StatusData.isException,StatusData.isError,StatusData.copyWithand a readabletoString. - [New]
onUnhandledcallback, triggered when the received status code has no callback of its own. - [New]
StatusDataandStatusTypeare exported by the package. - [New]
FormDataenum for request.
1.3.3 #
- [Upgrade] SDK has been upgraded
- [New] handle for 525 SSL/TLS handshake failed or invalid certificate
- [fix] fix for handling code 0 - Front-end exception.
1.3.2 #
- New form-data print
1.3.1 #
- url key is required now
- remove forbidden url's
1.3.0 #
- New pre-CRUD methods for each type of response
1.2.3 #
- Header has been fixed for form-data when files is empty
1.2.2 #
- Error messages are been fixed
- content type fixed for json type
1.2.1 #
- READ and HEAD routing has been fixed
1.2.0 #
- Added support for READ, HEAD methods
- restored https pluging for html support
1.1.0 #
- Added support for PATCH method
1.0.1 #
- download response as been upgraded
1.0.0 #
- code has been upgraded
0.3.5 #
- data are now dynamic
- new formData boolean
0.3.4 #
- fix for headers
- dependences has been updated
0.3.3+3 #
- forbidden data
0.3.3+2 #
- little fix for startting and finishing functions
0.3.3+1 #
- little fix for startting and finishing functions
0.3.3 #
- printResponse error Fixed
0.3.2 #
- [NEW] onStart() sync function
- [NEW] onFinish() sync function
- [NEW] printUrl
- printHeaders changed to printHeader
- printRequest changed to printBody
- More error controll
0.3.1 #
- Restore Loosing data
0.3.0 #
- new download request
0.2.6 #
- All prints return a quoted json now
0.2.5 #
- printHeader fix
0.2.3 #
- printHeader
0.2.2 #
- flutter_lints commited
0.2.1 #
- readme updated
0.2.0 #
- Single or multiple WebSocket with restarter and error control
0.1.0 #
- code refactoring
0.0.10 #
- Missing request debug print recovered - fix
0.0.9 #
- Missing request debug print recovered
0.0.8 #
- Request nulleable issue fix
0.0.7 #
- Request improvements
0.0.6 #
- unsuccessful codes updated
- No return messages return a null value now
0.0.5 #
- request type fix
0.0.4 #
- request type indicator icon
0.0.3 #
- request type in debugprint
- error print in another line
0.0.2 #
- Exporting libraries
0.0.1 #
- Alpha launch