jquery_min_js.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Licensed to the Apache Software Foundation (ASF) under one
  2. // or more contributor license agreements. See the NOTICE file
  3. // distributed with this work for additional information
  4. // regarding copyright ownership. The ASF licenses this file
  5. // to you under the Apache License, Version 2.0 (the
  6. // "License"); you may not use this file except in compliance
  7. // with the License. You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. // Authors: Ge,Jun (gejun@baidu.com)
  18. #ifndef BRPC_BUILTIN_JQUERY_MIN_JS_H
  19. #define BRPC_BUILTIN_JQUERY_MIN_JS_H
  20. #include "butil/iobuf.h"
  21. namespace brpc {
  22. // Get the jquery.min.js as string or IOBuf.
  23. // We need to pack all js inside C++ code so that builtin services can be
  24. // accessed without external resources and network connection.
  25. const char* jquery_min_js();
  26. const butil::IOBuf& jquery_min_js_iobuf();
  27. const butil::IOBuf& jquery_min_js_iobuf_gzip();
  28. } // namespace brpc
  29. #endif // BRPC_BUILTIN_JQUERY_MIN_JS_H