Sha256: 6e3a7aa27798a090551910d267fc892aa79cfee5addfdb6f1e8c26ed8f06792b

Contents?: true

Size: 831 Bytes

Versions: 7

Compression:

Stored size: 831 Bytes

Contents

Prism.languages.http={"request-line":{pattern:/^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b\shttps?:\/\/\S+\sHTTP\/[0-9.]+/g,inside:{property:/^\b(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/g,"attr-name":/:\w+/g}},"response-status":{pattern:/^HTTP\/1.[01] [0-9]+.*/g,inside:{property:/[0-9]+[A-Z\s-]+$/ig}},keyword:/^[\w-]+:(?=.+)/gm};var httpLanguages={"application/json":Prism.languages.javascript,"application/xml":Prism.languages.markup,"text/xml":Prism.languages.markup,"text/html":Prism.languages.markup};for(var contentType in httpLanguages)if(httpLanguages[contentType]){var options={};options[contentType]={pattern:new RegExp("(content-type:\\s*"+contentType+"[\\w\\W]*?)\\n\\n[\\w\\W]*","gi"),lookbehind:!0,inside:{rest:httpLanguages[contentType]}};Prism.languages.insertBefore("http","keyword",options)};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyhyhy-1.0.0 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.9 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.8 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.7 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.6 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.5 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js
hyhyhy-0.0.4 lib/hyhyhy/structure/_includes/prism/components/prism-http.min.js