-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Dec 12, 2023
1 parent
b419656
commit 6624ccf
Showing
9 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@amadeus-it-group/kassette](./kassette.md) > [ConfigurationSpec](./kassette.configurationspec.md) > [harMimeTypesParseJson](./kassette.configurationspec.harmimetypesparsejson.md) | ||
|
||
## ConfigurationSpec.harMimeTypesParseJson property | ||
|
||
Used only when the [mocks format](./kassette.imock.mocksformat.md) is 'har', specifies a list of mime types that will attempt to parse the request/response body as JSON. If the list includes an empty string: '' and there is no mimeType set in the request, it will attempt to parse the body as JSON. This will only be applicable to request bodies if [saveInputRequestBody](./kassette.imock.saveinputrequestbody.md) is set to true Default value will be \[\] and will only be overridden by [setHarMimeTypesParseJson](./kassette.imock.setharmimetypesparsejson.md) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
readonly harMimeTypesParseJson?: string[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@amadeus-it-group/kassette](./kassette.md) > [HarFormatContent](./kassette.harformatcontent.md) > [json](./kassette.harformatcontent.json.md) | ||
|
||
## HarFormatContent.json property | ||
|
||
Response body saved as an object. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
json?: any; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@amadeus-it-group/kassette](./kassette.md) > [HarFormatPostData](./kassette.harformatpostdata.md) > [json](./kassette.harformatpostdata.json.md) | ||
|
||
## HarFormatPostData.json property | ||
|
||
Response body saved as an object. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
json?: any; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@amadeus-it-group/kassette](./kassette.md) > [IMock](./kassette.imock.md) > [harMimeTypesParseJson](./kassette.imock.harmimetypesparsejson.md) | ||
|
||
## IMock.harMimeTypesParseJson property | ||
|
||
Used only when the [mocks format](./kassette.imock.mocksformat.md) is 'har', specifies a list of mime types that will attempt to parse the request/response body as JSON. This will only be applicable to request bodies if [saveInputRequestBody](./kassette.imock.saveinputrequestbody.md) is set to true Default value will be \[\] and will only be overridden by [setHarMimeTypesParseJson](./kassette.imock.setharmimetypesparsejson.md) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
readonly harMimeTypesParseJson: string[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@amadeus-it-group/kassette](./kassette.md) > [IMock](./kassette.imock.md) > [setHarMimeTypesParseJson](./kassette.imock.setharmimetypesparsejson.md) | ||
|
||
## IMock.setHarMimeTypesParseJson() method | ||
|
||
Sets the [harMimeTypesParseJson](./kassette.imock.harmimetypesparsejson.md) value. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
setHarMimeTypesParseJson(value: string[]): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| value | string\[\] | The mime types that should attempt to parse the body as json | | ||
|
||
**Returns:** | ||
|
||
void | ||
|