Skip to content

Commit

Permalink
Add HAR extension to JSON language (#4369)
Browse files Browse the repository at this point in the history
* Add HAR type extension to JSON language

* Added HAR sample
  • Loading branch information
wesinator authored and lildude committed Jan 8, 2019
1 parent e761f9b commit 08261e7
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2192,6 +2192,7 @@ JSON:
- ".avsc"
- ".geojson"
- ".gltf"
- ".har"
- ".JSON-tmLanguage"
- ".jsonl"
- ".tfstate"
Expand Down
79 changes: 79 additions & 0 deletions samples/JSON/recording.har
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"log": {
"_recordingName": "@pollyjs/adapter-xhr/Integration | XHR Adapter/should be able to abort from an intercept",
"browser": {
"name": "Chrome",
"version": "67.0"
},
"creator": {
"comment": "persister:rest",
"name": "Polly.JS",
"version": "0.5.0"
},
"entries": [
{
"_id": "a59c75974571204bf8035e70d5ce252a",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [],
"headersSize": 182,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "http://localhost:7357/api/db/-pollyjs_2160168770%2Fadapter-xhr_1803529635%2FIntegration-XHR-Adapter_4095563232%2Fshould-be-able-to-abort-from-an-intercept_68559697"
},
"response": {
"bodySize": 0,
"content": {
"mimeType": "text/plain",
"size": 0
},
"cookies": [],
"headers": [
{
"name": "access-control-allow-origin",
"value": "*"
},
{
"name": "date",
"value": "Mon, 16 Jul 2018 22"
},
{
"name": "connection",
"value": "close"
},
{
"name": "x-powered-by",
"value": "Express"
},
{
"name": "content-length",
"value": "0"
}
],
"headersSize": 122,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2018-07-16T22:55:22.554Z",
"time": 33,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 33
}
}
],
"pages": [],
"version": "1.2"
}
}

0 comments on commit 08261e7

Please sign in to comment.