SH-4106 Significantly upgrade the HttpHeaders interface for SSB.
Header container moves from a vector of raw lines to a vector of string pairs representing name/value pairs in headers. For incoming headers, we normalize the name to lowercase and trim it. Values are only left-trimmed. Outgoing headers are left as-is. Simple find() method for the common case, forward and reverse iterators for those few who need to do it themselves. The HTTP status line (e.g. 'HTTP/1.1 200 Ok') is no longer treated as a header to be returned to caller. Unit tests, as usual, were a bear but they absolutely ensured outgoing HTTP header conformance after the change. Grunt work paid off. LLTextureFetch was also given a second options structure for texture fetches. Same as the original but with header return to caller requested. Baked textures should use this, the other 20,000 texture fetch requests should continue to use the original.
Showing
- indra/llcorehttp/_httplibcurl.cpp 11 additions, 6 deletionsindra/llcorehttp/_httplibcurl.cpp
- indra/llcorehttp/_httpoprequest.cpp 8 additions, 6 deletionsindra/llcorehttp/_httpoprequest.cpp
- indra/llcorehttp/examples/http_texture_load.cpp 2 additions, 2 deletionsindra/llcorehttp/examples/http_texture_load.cpp
- indra/llcorehttp/httpheaders.cpp 140 additions, 1 deletionindra/llcorehttp/httpheaders.cpp
- indra/llcorehttp/httpheaders.h 103 additions, 9 deletionsindra/llcorehttp/httpheaders.h
- indra/llcorehttp/tests/test_httpheaders.hpp 335 additions, 10 deletionsindra/llcorehttp/tests/test_httpheaders.hpp
- indra/llcorehttp/tests/test_httprequest.hpp 442 additions, 121 deletionsindra/llcorehttp/tests/test_httprequest.hpp
- indra/newview/lltexturefetch.cpp 13 additions, 4 deletionsindra/newview/lltexturefetch.cpp
- indra/newview/lltexturefetch.h 2 additions, 1 deletionindra/newview/lltexturefetch.h
Loading
Please register or sign in to comment