github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/httptransport/httpx/httpx_mines__generated_test.go (about)

     1  // This is a generated source file. DO NOT EDIT
     2  // Source: httpx_test/httpx_mines__generated_test.go
     3  
     4  package httpx_test
     5  
     6  import (
     7  	"fmt"
     8  
     9  	"github.com/machinefi/w3bstream/pkg/depends/kit/httptransport/httpx"
    10  )
    11  
    12  func ExampleApplicationOgg() {
    13  	m := httpx.NewApplicationOgg()
    14  	fmt.Println(m.ContentType())
    15  	// Output:
    16  	// application/ogg
    17  }
    18  
    19  func ExampleApplicationProtobuf() {
    20  	m := httpx.NewApplicationProtobuf()
    21  	fmt.Println(m.ContentType())
    22  	// Output:
    23  	// application/x-protobuf
    24  }
    25  
    26  func ExampleAudioMidi() {
    27  	m := httpx.NewAudioMidi()
    28  	fmt.Println(m.ContentType())
    29  	// Output:
    30  	// audio/midi
    31  }
    32  
    33  func ExampleAudioMp3() {
    34  	m := httpx.NewAudioMp3()
    35  	fmt.Println(m.ContentType())
    36  	// Output:
    37  	// audio/mpeg
    38  }
    39  
    40  func ExampleAudioOgg() {
    41  	m := httpx.NewAudioOgg()
    42  	fmt.Println(m.ContentType())
    43  	// Output:
    44  	// audio/ogg
    45  }
    46  
    47  func ExampleAudioWave() {
    48  	m := httpx.NewAudioWave()
    49  	fmt.Println(m.ContentType())
    50  	// Output:
    51  	// audio/wav
    52  }
    53  
    54  func ExampleAudioWebm() {
    55  	m := httpx.NewAudioWebm()
    56  	fmt.Println(m.ContentType())
    57  	// Output:
    58  	// audio/webm
    59  }
    60  
    61  func ExampleCSS() {
    62  	m := httpx.NewCSS()
    63  	fmt.Println(m.ContentType())
    64  	// Output:
    65  	// text/css
    66  }
    67  
    68  func ExampleHTML() {
    69  	m := httpx.NewHTML()
    70  	fmt.Println(m.ContentType())
    71  	// Output:
    72  	// text/html
    73  }
    74  
    75  func ExampleImageBmp() {
    76  	m := httpx.NewImageBmp()
    77  	fmt.Println(m.ContentType())
    78  	// Output:
    79  	// image/bmp
    80  }
    81  
    82  func ExampleImageGIF() {
    83  	m := httpx.NewImageGIF()
    84  	fmt.Println(m.ContentType())
    85  	// Output:
    86  	// image/gif
    87  }
    88  
    89  func ExampleImageJPEG() {
    90  	m := httpx.NewImageJPEG()
    91  	fmt.Println(m.ContentType())
    92  	// Output:
    93  	// image/jpeg
    94  }
    95  
    96  func ExampleImagePNG() {
    97  	m := httpx.NewImagePNG()
    98  	fmt.Println(m.ContentType())
    99  	// Output:
   100  	// image/png
   101  }
   102  
   103  func ExampleImageSVG() {
   104  	m := httpx.NewImageSVG()
   105  	fmt.Println(m.ContentType())
   106  	// Output:
   107  	// image/svg+xml
   108  }
   109  
   110  func ExampleImageWebp() {
   111  	m := httpx.NewImageWebp()
   112  	fmt.Println(m.ContentType())
   113  	// Output:
   114  	// image/webp
   115  }
   116  
   117  func ExamplePlain() {
   118  	m := httpx.NewPlain()
   119  	fmt.Println(m.ContentType())
   120  	// Output:
   121  	// text/plain
   122  }
   123  
   124  func ExampleVideoOgg() {
   125  	m := httpx.NewVideoOgg()
   126  	fmt.Println(m.ContentType())
   127  	// Output:
   128  	// video/ogg
   129  }
   130  
   131  func ExampleVideoWebm() {
   132  	m := httpx.NewVideoWebm()
   133  	fmt.Println(m.ContentType())
   134  	// Output:
   135  	// video/webm
   136  }