This file contains hidden or 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
// Set up custom content types -associating file extension to MIME type | |
var provider = new FileExtensionContentTypeProvider(); | |
// Add new mappings | |
provider.Mappings.Add(".glb", "model/gltf-binary"); | |
provider.Mappings.Add(".gltf", "model/gltf+json"); | |
app.UseStaticFiles(new StaticFileOptions | |
{ | |
ContentTypeProvider = provider | |
}); |
This file contains hidden or 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
Imports System | |
Imports System.Net.Http | |
Imports System.Net.Http.Headers | |
Module Program | |
Sub Main(args As String()) | |
Dim page As String = "https://{server}.api.mailchimp.com/3.0/ping" | |
Using client As HttpClient = New HttpClient() | |
client.DefaultRequestHeaders.Authorization = New System.Net.Http.Headers.AuthenticationHeaderValue("Basic", "{APIKEY}") | |
client.DefaultRequestHeaders.Accept.Add(New System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")) |