项目作者: keith-hall

项目描述 :
HTTP Request/Response sublime-syntax grammar
高级语言:
项目地址: git://github.com/keith-hall/http-request-response-syntax.git
创建时间: 2021-07-27T20:08:15Z
项目社区:https://github.com/keith-hall/http-request-response-syntax

开源协议:MIT License

下载


HTTP Request Response Syntax

This is a sublime-syntax grammar for HTTP Requests and/or Responses.
It was originally designed for use in https://github.com/sharkdp/bat, so it is not using any Sublime Text 4 features, as https://github.com/trishume/syntect does not support them yet. So this package should work in Sublime Text 3 also.

Example highlighting:

example http request response highlighting
<!—

  1. POST /foo/bar?id=4&x=y%20z HTTP/1.1
  2. X-Forwarded-For: 127.0.0.1
  3. Content-Length: 124
  4. Cache-Control: no-cache
  5. X-Forwarded-Proto: https
  6. Content-Type: application/json; charset=utf-8
  7. Host: example.com
  8. Accept: */*; q=0.5, application/xml
  9. Accept-Encoding: gzip
  10. {
  11. "id": "blahblahblahblah",
  12. "object": "event",
  13. "api_version": "2020-03-02",
  14. "created": 1626790174,
  15. "data": {
  16. }
  17. }
  18. HTTP/1.1 200 OK
  19. Server: nginx
  20. Date: Fri, 23 Jul 2021 10:15:12 GMT
  21. Content-Type: text/html; charset=utf-8
  22. Transfer-Encoding: chunked
  23. Connection: keep-alive
  24. Vary: Accept-Encoding
  25. Cache-Control: private; max-age=0
  26. X-Frame-Options: DENY
  27. X-Content-Type-Options: nosniff
  28. X-XSS-Protection: 1; mode=block
  29. Referrer-Policy: origin
  30. Strict-Transport-Security: max-age=31556900
  31. <!DOCTYPE html>
  32. <html>
  33. <head>
  34. <meta charset="utf-8">
  35. <title>Hello World</title>
  36. </head>
  37. <body>
  38. </body>
  39. </html>

—>