index
:
~steering
/
bitbot.git
this commit
master
Unnamed repository; edit this file 'description' to name the repository.
steering7253
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
utils
/
http.py
Commit message (
Expand
)
Author
Age
Files
Lines
*
log which URL caused an error in request_many
jesopo
2019-09-17
1
-1
/
+6
*
only decode content-types in DECODE_CONTENT_TYPES
jesopo
2019-09-17
1
-1
/
+1
*
Response.__init__() needs `encoding` now
jesopo
2019-09-17
1
-1
/
+1
*
restore 5 second (instead of default 10) deadline for http.request
jesopo
2019-09-17
1
-1
/
+1
*
use utils.deadline_process() in utils.http._request() so background threads can
•••
call _request()
jesopo
2019-09-17
1
-30
/
+37
*
add `json_body` arg to Request to json-encode body, only return from `body` if
•••
not null
jesopo
2019-09-16
1
-4
/
+8
*
allow Requests to specify a useragent
jesopo
2019-09-12
1
-3
/
+4
*
add a helper utils.http.Client static object
jesopo
2019-09-11
1
-0
/
+4
*
add `proxy` to Request objects
jesopo
2019-09-11
1
-1
/
+2
*
refactor utils.http.requests to support a Request object
jesopo
2019-09-11
1
-27
/
+77
*
automatically decode certain http content types
jesopo
2019-09-11
1
-1
/
+6
*
Don't try to .decode non-html things, default iso-lat-1 for non-html too
jesopo
2019-09-09
1
-5
/
+5
*
add flag to disable encoding detection
jesopo
2019-09-09
1
-5
/
+4
*
'str.split' -> 's.split'
jesopo
2019-09-09
1
-1
/
+1
*
still default to iso-latin-1 if no on-page or in-header content-type is present
jesopo
2019-09-09
1
-1
/
+1
*
only look for <meta>-related tags when there are meta tags
jesopo
2019-09-09
1
-9
/
+11
*
add explicit None return for _find_encoding (mypy)
jesopo
2019-09-09
1
-0
/
+1
*
change utils.http.request to best-effort detect on-page encoding
•••
closes #113
jesopo
2019-09-09
1
-2
/
+34
*
correctly qualify DeadlineExceededException namespace
jesopo
2019-09-03
1
-1
/
+1
*
use utils.deadline() in utils.http.request, not raw sigalrm
jesopo
2019-09-02
1
-18
/
+15
*
Pass the content of a webpage to HTTPParsingException
jesopo
2019-09-02
1
-2
/
+2
*
use \S+ for url regex (for non-ascii chars), use url_sanitize to catch <>
jesopo
2019-09-02
1
-9
/
+12
*
Allow bypass of content-type check in utils.http.request
jesopo
2019-08-05
1
-3
/
+3
*
not all HTTP responses have content-type
jesopo
2019-08-02
1
-1
/
+1
*
asyncio.gather -> asyncio.wait (with timeout)
jesopo
2019-07-08
1
-1
/
+1
*
tell asyncio.gather which loop to use
jesopo
2019-07-08
1
-1
/
+1
*
close event loop when we're done with it (request_many())
jesopo
2019-07-08
1
-1
/
+2
*
Don't try/except async http exceptions
jesopo
2019-07-08
1
-5
/
+1
*
switch request_many() to use asyncio.gather
jesopo
2019-07-08
1
-14
/
+18
*
catch async exceptions in utils.http.request_many()
jesopo
2019-07-08
1
-1
/
+6
*
add missing schema in utils.http.sanitise_url, use in rss.py
jesopo
2019-07-08
1
-0
/
+3
*
switch to using asyncio's event loop
jesopo
2019-07-08
1
-6
/
+7
*
implement utils.http.request_many as a tonado ioloop yield
jesopo
2019-07-08
1
-1
/
+19
*
url_validate() -> url_sanitise()
jesopo
2019-07-02
1
-1
/
+1
*
Add utils.http.url_validate() for best-effort url tidying
jesopo
2019-07-02
1
-0
/
+16
*
message arg for HTTPWrongContentTypeException/HTTPParsingException
jesopo
2019-06-28
1
-5
/
+5
*
Give descriptions to utils.http.HTTPException subclasses
jesopo
2019-06-27
1
-2
/
+6
*
add `allow_redirects` kwarg to utils.http.request()
jesopo
2019-06-26
1
-0
/
+2
*
Defer decoding http payload bytestring until after checking ContentType
jesopo
2019-06-04
1
-2
/
+5
*
Pass str object to BeautifulSoup, not bytes. closes #56
jesopo
2019-05-28
1
-4
/
+3
*
forgot the beautiful %
Patrick Nappa
2019-05-03
1
-1
/
+1
*
ensure that non-url characters not separated by whitespace aren't consumed
Patrick Nappa
2019-05-03
1
-1
/
+1
*
Add missing ":"
jesopo
2019-04-25
1
-1
/
+1
*
Support interfaces that don't have AF_INET and/or AF_INET6
jesopo
2019-04-25
1
-1
/
+4
*
Refuse to get the title for any url that points locall
jesopo
2019-04-25
1
-2
/
+30
*
Move REGEX_URL out of isgd.py and title.py in to utils.http
jesopo
2019-04-24
1
-1
/
+2
*
Raise a specific exception in utils.http.request for "wrong content type"
jesopo
2019-02-28
1
-1
/
+4
*
Throw ValueError when utils.http.request tries to soup non-html/xml data
jesopo
2019-02-27
1
-3
/
+6
*
Don't try to parse non-html/xml stuff with BeautifulSoup
jesopo
2019-02-26
1
-1
/
+4
*
Typo in utils.http.request, 'response_heders' -> 'response_headers'
jesopo
2018-12-11
1
-1
/
+1
[next]