Nikolay Kim
4937c9f9c2
refactor http-test server
2019-12-12 23:08:38 +06:00
0x1793d1
1b8d747937
Fix extra line feed ( #1209 )
2019-12-12 07:05:39 +06:00
Nikolay Kim
4a8a9ef405
update tests and clippy warnings
2019-12-08 12:31:16 +06:00
Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
Nikolay Kim
0ba125444a
Add impl ResponseBuilder for Error
2019-12-07 21:41:34 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
14075ebf7f
use released versions of actix-net
2019-12-02 23:33:39 +06:00
Nikolay Kim
f73f97353b
refactor ResponseError trait
2019-11-26 16:07:39 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
69cadcdedb
migrate actix-files
2019-11-21 16:02:17 +06:00
Nikolay Kim
1ffa7d18d3
drop unpin constraint
2019-11-21 16:02:17 +06:00
Nikolay Kim
8cba1170e6
make actix-http compile with std::future
2019-11-21 16:02:17 +06:00
SuperHacker-liuan
f089cf185b
Let ResponseError render w/ 'text/plain; charset=utf-8' header ( #1118 ) ( #1119 )
...
* Let ResponseError render w/ 'text/plain; charset=utf-8' header (#1118 )
Trait ResponseError originally render Error messages with header
`text/plain` , which causes browsers (i.e. Firefox 70.0) with
Non-English locale unable to render UTF-8 responses with non-English
characters correctly. i.e. emoji.
This fix solved this problem by specifying the charset of `text/plain`
as utf-8, which is the default charset in rust.
Before actix-web consider to support other charsets, this hotfix is
enough.
Test case:
fn test() -> Result<String, actix_web::Error> {
Err(actix_web::error::ErrorForbidden("ðtest"))
}
* Update actix-http/CHANGES.md for #1118
2019-10-07 10:56:24 +06:00
nWacky
7c9f9afc46
Add ability to use Infallible
as HttpResponse
error type ( #1093 )
...
* Add `std::convert::Infallible` implementantion for `ResponseError`
* Add from `std::convert::Infallible` to `Error`
* Remove `ResponseError` implementantion for `Infallible`
* Remove useless docs
* Better comment
* Update changelog
* Update actix_http::changelog
2019-09-17 06:57:38 +06:00
Yuki Okushi
23d768a77b
Add explicit dyn
s ( #1041 )
...
* Add explicit `dyn`s
* Remove unnecessary lines
2019-08-17 02:45:44 +09:00
Sven-Hendrik Haase
81ab37f235
Fix two dyn warnings ( #1015 )
2019-07-29 08:10:33 +04:00
Nikolay Kim
9c3789cbd0
revert DateServiceInner changes
2019-07-18 17:37:41 +06:00
Armin Ronacher
29098f8397
Add support for downcasting response errors ( #986 )
...
* Add support for downcasting response errors
* Added test for error casting
2019-07-18 17:25:50 +06:00
Nikolay Kim
2a2d7f5768
nightly clippy warnings
2019-07-17 15:53:51 +06:00
Otavio Salvador
6e00eef63a
awc: Fix typo on ResponseError documentation ( #815 )
...
* awc: Fix typo on ResponseError documentation
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* http: Fix typo on ResponseError documentation
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* http: Expand type names for openssl related errors documentation
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2019-05-03 14:30:00 -07:00
Nikolay Kim
94d7a7f873
custom future for SendError service
2019-04-11 15:12:23 -07:00
Nikolay Kim
9d82d4dfb9
Fix body propagation in Response::from_error. #760
2019-04-10 12:43:31 -07:00
Nikolay Kim
561f83d044
add upgrade service support to h1 dispatcher
2019-04-08 17:51:14 -07:00
Nikolay Kim
fbedaec661
add expect: 100-continue support #141
2019-04-05 16:46:44 -07:00
Nikolay Kim
1f5c0f50f9
Add minimal std::error::Error impl for Error
2019-04-04 13:23:38 -07:00
Nikolay Kim
1e2bd68e83
Render error and return as response body
2019-04-03 19:55:19 -07:00
Nikolay Kim
d846328f36
fork cookie crate
2019-03-29 21:13:39 -07:00
Nikolay Kim
19a0b8046b
remove actix reference
2019-03-29 11:13:36 -07:00
Nikolay Kim
5795850bbb
decompress payload in cpu threadpool
2019-03-28 11:08:24 -07:00
Nikolay Kim
e84c95968f
reuse PayloadBuffer from actix-http
2019-03-28 05:34:33 -07:00
Nikolay Kim
4309d9b88c
port multipart support
2019-03-28 05:04:39 -07:00
Nikolay Kim
fb9c94c3e0
remove Backtrace from error
2019-03-27 09:31:07 -07:00
Nikolay Kim
c7ad677804
Merge actix-http project
2019-03-26 11:54:35 -07:00