---
title: NewTransport
summary: NewTransport creates a new Transport instance with the given default backend. Any request made to a host not explicitly mapped to a backend using the AddHostBackend method will be sent to the default backend.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/fn.NewTransport/
---

**Kind:** Function  
**Module:** [fsthttp](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/transport.go#L41

```go
func NewTransport(backend string) *Transport
```

NewTransport creates a new Transport instance with the given default
backend.  Any request made to a host not explicitly mapped to a
backend using the AddHostBackend method will be sent to the default
backend.

**Parameters**

- `backend`: `string`

**Returns**

`*Transport`
