# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite.

The specification for modifying the URL of the request, prior to forwarding
the request to the destination.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #host_rewrite

    def host_rewrite() -> ::String

**Returns**

- (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.

### #host_rewrite=

    def host_rewrite=(value) -> ::String

**Parameter**

- **value** (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
**Returns**

- (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.

### #path_prefix_rewrite

    def path_prefix_rewrite() -> ::String

**Returns**

- (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.

### #path_prefix_rewrite=

    def path_prefix_rewrite=(value) -> ::String

**Parameter**

- **value** (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
**Returns**

- (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.