)]}'
{"marconiclient/transport/api.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7f51c3a3aab379cd8d1c78095b7e2e79febc14c9","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    validators \u003d {}"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def get_schema(self, operation):"},{"line_number":28,"context_line":"        \"\"\"Returns the schema for a operation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        :param operation: Operation\u0027s for which params need"},{"line_number":31,"context_line":"            to be validated."}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FdZ4%3D","line":28,"updated":"2013-10-16 15:40:11.000000000","message":"\u0027a\u0027 --\u003e \u0027an\u0027","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"79ff2b9ceed88c908aea8586c208a79005122546","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    validators \u003d {}"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def get_schema(self, operation):"},{"line_number":28,"context_line":"        \"\"\"Returns the schema for a operation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        :param operation: Operation\u0027s for which params need"},{"line_number":31,"context_line":"            to be validated."}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FXVI%3D","line":28,"in_reply_to":"AAAATH%2F%2FdZ4%3D","updated":"2013-10-17 07:15:24.000000000","message":"Done","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7f51c3a3aab379cd8d1c78095b7e2e79febc14c9","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def get_schema(self, operation):"},{"line_number":28,"context_line":"        \"\"\"Returns the schema for a operation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        :param operation: Operation\u0027s for which params need"},{"line_number":31,"context_line":"            to be validated."},{"line_number":32,"context_line":"        :type operation: `six.text_type`"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FdaA%3D","line":30,"updated":"2013-10-16 15:40:11.000000000","message":"Operation\u0027s --\u003e Operation","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"79ff2b9ceed88c908aea8586c208a79005122546","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def get_schema(self, operation):"},{"line_number":28,"context_line":"        \"\"\"Returns the schema for a operation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        :param operation: Operation\u0027s for which params need"},{"line_number":31,"context_line":"            to be validated."},{"line_number":32,"context_line":"        :type operation: `six.text_type`"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FXVE%3D","line":30,"in_reply_to":"AAAATH%2F%2FdaA%3D","updated":"2013-10-17 07:15:24.000000000","message":"Done","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"}],"marconiclient/transport/http.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7f51c3a3aab379cd8d1c78095b7e2e79febc14c9","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        self.client \u003d http.Client()"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _prepare(self, request):"},{"line_number":27,"context_line":"        if not request.api:"},{"line_number":28,"context_line":"            return request.endpoint, \u0027GET\u0027, request"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        # TODO(flaper87): Validate if the user"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FaFY%3D","line":27,"updated":"2013-10-16 15:40:11.000000000","message":"In what cases would the request not have an associated API? I guess I\u0027m not seeing the big picture yet...","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"79ff2b9ceed88c908aea8586c208a79005122546","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        self.client \u003d http.Client()"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _prepare(self, request):"},{"line_number":27,"context_line":"        if not request.api:"},{"line_number":28,"context_line":"            return request.endpoint, \u0027GET\u0027, request"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        # TODO(flaper87): Validate if the user"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FXUs%3D","line":27,"in_reply_to":"AAAATH%2F%2FaFY%3D","updated":"2013-10-17 07:15:24.000000000","message":"Cases were Raw requests want to be executed against a marconi-server. This is mostly useful to support third-party transports and development. As for third-party transport, it\u0027d be definitely easier for a users to define their own API object, though.","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7f51c3a3aab379cd8d1c78095b7e2e79febc14c9","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        # NOTE(flape87): Do not modify"},{"line_number":51,"context_line":"        # request\u0027s headers directly."},{"line_number":52,"context_line":"        headers \u003d request.headers.copy()"},{"line_number":53,"context_line":"        headers[\u0027content-type\u0027] \u003d \u0027application/json\u0027"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        return self.client.request(method,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FaJo%3D","line":52,"updated":"2013-10-16 15:40:11.000000000","message":"Does \"headers\" still make sense in the context of other transports? I think it would be helpful to make this obvious through documentation and/or the attribute name.\n\nAs the code now stands, it looks like a caller can pass arbitrary HTTP headers through. Was that the intent?","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"79ff2b9ceed88c908aea8586c208a79005122546","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        # NOTE(flape87): Do not modify"},{"line_number":51,"context_line":"        # request\u0027s headers directly."},{"line_number":52,"context_line":"        headers \u003d request.headers.copy()"},{"line_number":53,"context_line":"        headers[\u0027content-type\u0027] \u003d \u0027application/json\u0027"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        return self.client.request(method,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FXUA%3D","line":52,"in_reply_to":"AAAATH%2F%2FaJo%3D","updated":"2013-10-17 07:15:24.000000000","message":"The term `headers` is very HTTP specific. It exists because among the transport we\u0027ve considered, HTTP is the most fragmented one in terms of protocol. In order to ease the understanding of the client and the API itself, I preferred to stick to HTTP terms.\n\nIt is possible to send custom headers, for example, authentication clients may use it to inject tokens.\n\nOther transports not needing headers will translate this request object in something compliant to the protocol. \n\nI guess the easiest way to put it is: \u0027Instead of creating new terms for a cross-transport request object, lets stick the most known one - HTTP - and let other transports translate the request to something compliant with their protocol\u0027","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"}],"tests/unit/transport/test_http.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7f51c3a3aab379cd8d1c78095b7e2e79febc14c9","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from marconiclient.transport import request"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class TestHttpTransport(base.TestBase):"},{"line_number":25,"context_line":"    \"\"\"Tests for the HTTP transport.\"\"\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FaFI%3D","line":24,"updated":"2013-10-16 15:40:11.000000000","message":"It would be great to also have a test that uses a parameterized ref. to make sure that branch is covered.","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"79ff2b9ceed88c908aea8586c208a79005122546","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from marconiclient.transport import request"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class TestHttpTransport(base.TestBase):"},{"line_number":25,"context_line":"    \"\"\"Tests for the HTTP transport.\"\"\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATH%2F%2FXT8%3D","line":24,"in_reply_to":"AAAATH%2F%2FaFI%3D","updated":"2013-10-17 07:15:24.000000000","message":"mmhh, not sure I follow. \n\nCurrent tests cover URL building, headers and URL params. The reason why the final_url doesn\u0027t have the query params is because python-requests takes care of that, which means they\u0027ll be add later, before the request is sent.","commit_id":"f31c20c8210013510fca3d2ae3dffdef8e0c8171"}]}
