mercury.proto 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. message MercuryMultiGetRequest {
  2. repeated MercuryRequest request = 0x1;
  3. }
  4. message MercuryMultiGetReply {
  5. repeated MercuryReply reply = 0x1;
  6. }
  7. message MercuryRequest {
  8. optional string uri = 0x1;
  9. optional string content_type = 0x2;
  10. optional bytes body = 0x3;
  11. optional bytes etag = 0x4;
  12. }
  13. message MercuryReply {
  14. optional sint32 status_code = 0x1;
  15. optional string status_message = 0x2;
  16. optional CachePolicy cache_policy = 0x3;
  17. enum CachePolicy {
  18. CACHE_NO = 0x1;
  19. CACHE_PRIVATE = 0x2;
  20. CACHE_PUBLIC = 0x3;
  21. }
  22. optional sint32 ttl = 0x4;
  23. optional bytes etag = 0x5;
  24. optional string content_type = 0x6;
  25. optional bytes body = 0x7;
  26. }
  27. message Header {
  28. optional string uri = 0x01;
  29. optional string content_type = 0x02;
  30. optional string method = 0x03;
  31. optional sint32 status_code = 0x04;
  32. repeated UserField user_fields = 0x06;
  33. }
  34. message UserField {
  35. optional string key = 0x01;
  36. optional bytes value = 0x02;
  37. }